[R] ODD and EVEN numbers

Stephan Kolassa Stephan.Kolassa at gmx.de
Wed Mar 31 22:13:58 CEST 2010


(foo %% 2) == 0

See ?"%%"

HTH
Stephan


tj schrieb:
> Hi,
> 
> anyone here who knows how to determine if an integer is "odd" or "even" in
> R?
> Thanks.
> 
> 
> tj



More information about the R-help mailing list