> 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.curt@epa.gov
541/754-4638



	[[alternative HTML version deleted]]

