[R] How to count the number of NAs in each column of a df?

Michael Kubovy kubovy at virginia.edu
Fri Feb 9 03:38:23 CET 2007


I would like to remove columns of a df which have too many NAs.

I think that summary() should give me the information, I just don't  
know how to access it.

Advice?
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/



More information about the R-help mailing list