[R] NA values

Gabor Csardi csardi at rmki.kfki.hu
Wed Nov 21 12:25:35 CET 2007


Eleni, this question appears about every month on this list, 
try using the RSiteSearch command before posting. Thanks.

RSiteSearch("replace NA") 
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/109176.html

Gabor

On Wed, Nov 21, 2007 at 01:15:32PM +0200, Eleni Christodoulou wrote:
> Hi all!
> 
> I am new to R and I would like to ask you the following question:How
> can I substitute the NA values with 0 in a data frame? I cannot find a
> command to check if a value is NA...
> 
> Thank you very much!
> Eleni
> 
> ______________________________________________
> 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.

-- 
Csardi Gabor <csardi at rmki.kfki.hu>    MTA RMKI, ELTE TTK



More information about the R-help mailing list