[R] efficient is.na tabulation?

From: Angelo Passalacqua <apassala_at_gmail.com>
Date: Mon, 25 Feb 2008 13:59:04 +0000

I am aware of


but is there an efficient way of create a table that shows the number of missing values in each variable of a data frame?

Right now I am forced to create a new variable, varna<-is.na(df$var), for each variable of the data frame, bind them to a new data frame and tabulate it, but surely there is a simpler way?

any help is greatly appreciated,

        [[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 25 Feb 2008 - 14:11:22 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 25 Feb 2008 - 15:30:16 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive