[R] identifying odd or even number
David Winsemius
dwinsemius at comcast.net
Thu Jul 1 19:17:44 CEST 2010
On Jul 1, 2010, at 11:40 AM, Yemi Oyeyemi wrote:
> Hi, I run into problem when writing a syntax, I don't know syntax
> that will return true or false if an integer is odd or even.
> Thanks
>
> 1:12 %% 2 == 0
[1] FALSE TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE TRUE
FALSE TRUE
> OYEYEMI, Gafar Matanmi
>
> Department of Statistics
>
> University of Ilorin
>
> P.M.B 1515
>
> Ilorin, Kwara State
>
> Nigeria
>
> Tel: +2348052278655
>
> Tel: +2348068241885
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
David Winsemius, MD
West Hartford, CT
More information about the R-help
mailing list