x <- list(
a = c(1, 2, NA, 3),
b = c("A", NA, "B", "C"),
c = as.Date(c("2020-01-02", NA, NA, "2020-03-02"))
)
tableNA(x) # entire list
tableNA(x, .list = TRUE) # counts for each
tableNA(x[1], x[2])
tableNA(x[1], x[2], x[3]) # equivalent ot tableNA(x, .list = TRUE)
Run the code above in your browser using DataLab