Skip to content
Prev 166000 / 398502 Next

Odp: if statement

Hi


r-help-bounces at r-project.org napsal dne 05.01.2009 12:41:49:
value
in
Well, you do not say what you want for C values if A[i] is not in such 
interval. So

 C<-(A<X|A>Y)*1

gives you zeros in required positions and ones in other positions.

Regards
Petr
question!
http://www.R-project.org/posting-guide.html