Re: [R] efficient is.na tabulation?

2008-02-25 Thread Chuck Cleland
On 2/25/2008 8:59 AM, Angelo Passalacqua wrote: > I am aware of > > table(is.na(df$var)) > > 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 >

[R] efficient is.na tabulation?

2008-02-25 Thread Angelo Passalacqua
I am aware of table(is.na(df$var)) 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 an