> I often get this error "missing value where TRUE/FALSE needed" when 
> I'm doing some loops, like with this one
> 
> ...
> Can someone explain me what I do wrong because I don't see the 
> difference with other loops that work

It's probably not the loop that's biting you, but rather the data.  This 
is one reason why folks prefer a working example of the problem rather 
than just a code segment.

I'll bet some of the values you are comparing are NA; is.na() may be of 
use to you.

cur
-- 
Curt Seeliger, Data Ranger
Raytheon Information Services - Contractor to ORD
seeliger.c...@epa.gov
541/754-4638



        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to