[R] removing NA from a data frame

Francisco J. Zagmutt gerifalte28 at hotmail.com
Fri Mar 17 22:09:48 CET 2006

Hi Sam

If you are new to R it will definitively pay off to start from the basics.  
Go to the help menu-> manuals in pdf and select "An Introduction to R".  
After you read that document you will be able to answer your questions :-)

Good luck!


>From: Sam Steingold <sds at podval.org>
>Reply-To: sds at podval.org
>To: r-help at stat.math.ethz.ch
>Subject: [R] removing NA from a data frame
>Date: Fri, 17 Mar 2006 15:17:51 -0500
>It appears that deal does not support missing values (NA), so I need to
>remove them (NAs) from my data frame.
>how do I do this?
>(I am very new to R, so a detailed step-by-step
>explanation with code samples would be nice).
>Some columns (variables) have quite a few NAs, so I would rather drop
>the whole column than sacrifice all the rows (observations) which have
>NA in that column.
>How do I remove a column from a data frame?
>Sam Steingold (http://www.podval.org/~sds) on Fedora Core release 4 
>http://ffii.org http://www.mideasttruth.com http://pmw.org.il
>http://www.dhimmi.com http://www.honestreporting.com 
>Don't hit a man when he's down -- kick him; it's easier.
>R-help at stat.math.ethz.ch mailing list
>PLEASE do read the posting guide! 

More information about the R-help mailing list