library(nycflights13)
library(dplyr)
sum.na <- function(df,x){df %>% summarise(n=sum(is.na(x)))}
sum.na(flights, arr_time)
When I run the above code, I get the error below:
**Error in eval(cols[[col]], .data, parent.frame()) :
object 'arr_time' not found**