[R] If Statement with more than one condition

news at aleblanc.cotse.net news at aleblanc.cotse.net
Fri Oct 22 11:46:22 CEST 2010


"Santosh Srinivas" <santosh.srinivas at gmail.com> writes:

> I'm unable to  find the OR operator like other language .. any suggestions?
>
> I want to do If (condition1 OR condition 2){ do something }
>
if((condition1) | (condition2)){ do something }

-- 
aleblanc



More information about the R-help mailing list