Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

[R] Question about NA's

Matthias Tips

2005-02-22


Hi,

i got a little question about the NA's in vectors and matrices. When I
want to do some operations on a matrix with some NA's it is possible
to stripp them before the computation proceed (by na.rm=TRUE).

But how can I stripp NA's when I want to proceed a 'if', 'for'
or 'while' string? Because when I don't stripp them I always reveive
the message :"missing value where TRUE/FALSE needed". I don't know if
I can use the method with na.rm=TRUE and if so, how I can do it.

Thanks a lot in advance!

Matthias Tips

______________________________________________
R-help@(protected)
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
©2008 r-help.com - Jax Systems, LLC, U.S.A.