[R] Odd and Even

Dave Caccace pikachoodave at yahoo.co.uk
Sun Apr 6 14:29:21 CEST 2003


Hi,
I'm trying to create a function, jim(p) which varies
depending on whether the value of p is odd or even. I
was trying to use th eIf function, but i cant work out
a formula to work out if p is odd or even.
Thanks,
Dave

__________________________________________________
Yahoo! Plus
For a better Internet experience
http://www.yahoo.co.uk/btoffer



More information about the R-help mailing list