kayj asks:
> I have a problem with ifelse(), I do not understand how it works. 
> 
> > X<-c(2,2,1,1,0,0)
> > str(X)
>  num [1:6] 2 2 1 1 0 0
> > Y<-ifelse(X>0,1,0)
> > Y
> [1] 1 1 1 1 0 0

Since X is a vector, the operation X>0 is also a vector.  The function 
ifelse() is correctly providing output for each element of the operation 
X>0.

cur

-- 
Curt Seeliger, Data Ranger
Raytheon Information Services - Contractor to ORD
seeliger.curt@epa.gov
541/754-4638
	[[alternative HTML version deleted]]


