Skip to content

Count missing variables in dataset

1 message · Liaw, Andy

#
Something like:

sum(sapply(dat, function(x) ! x %in% c("A", "B", "C")))

probably would work.

HTH,
Andy