Re: [R] ODD and EVEN numbers

From: Stephan Kolassa <Stephan.Kolassa_at_gmx.de>
Date: Wed, 31 Mar 2010 22:13:58 +0200

(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



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 31 Mar 2010 - 20:19:28 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 31 Mar 2010 - 20:50:34 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive