[R] Modulous operator?

2008-09-08 Thread rkevinburton
Is there a mod (like C '%' operator) operator in 'R'? I tried to help.search("mod") and there were too many hits for the query to be useful. Kevin __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the post

Re: [R] Modulous operator?

2008-09-08 Thread Csardi Gabor
?"%%" Gabor On Mon, Sep 08, 2008 at 11:58:45AM -0700, [EMAIL PROTECTED] wrote: > Is there a mod (like C '%' operator) operator in 'R'? I tried to > help.search("mod") and there were too many hits for the query to be useful. > > Kevin > > __ > R-help@

Re: [R] Modulous operator?

2008-09-08 Thread Peter Dalgaard
Csardi Gabor wrote: ?"%%" Yup. Notice, by the way, that "modulus" [sic] is ambiguous: > Mod(1+1i) [1] 1.414214 > 46 %% 7 [1] 4 Gabor On Mon, Sep 08, 2008 at 11:58:45AM -0700, [EMAIL PROTECTED] wrote: Is there a mod (like C '%' operator) operator in 'R'? I tried to help.search("mod

Re: [R] Modulous operator?

2008-09-08 Thread rkevinburton
Thank you. I definitely did not want Mod. Kevin Peter Dalgaard <[EMAIL PROTECTED]> wrote: > Csardi Gabor wrote: > > ?"%%" > > > Yup. Notice, by the way, that "modulus" [sic] is ambiguous: > > > Mod(1+1i) > [1] 1.414214 > > > 46 %% 7 > [1] 4 > > > > Gabor > > > > On Mon, Sep 08, 20