[R] modulus operator?
Marc Schwartz
mschwartz at medanalytics.com
Mon May 19 18:26:20 CEST 2003
Use: %%
See the R Reference Manual, pages 33 - 34 or ?Arithmetic
x %% y = x mod y
HTH,
Marc Schwartz
>-----Original Message-----
>From: r-help-bounces at stat.math.ethz.ch
>[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Wolski
>Sent: Monday, May 19, 2003 11:07 AM
>To: Anna H. Pryor; R Help
>Subject: Re: [R] modulus operator?
>
>
>I havent found any.
>I am using this.
>
>mod<-function(x,m)
> {
> t1<-floor(x/m)
> return(x-t1*m)
> }
>
>Eryk
>
>*********** REPLY SEPARATOR ***********
>
>On 5/19/2003 at 8:56 AM Anna H. Pryor wrote:
>
>>Is there a modulus operator in R?
>>
>>Anna
>>
>>______________________________________________
>>R-help at stat.math.ethz.ch mailing list
>>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
>
>
>Dipl. bio-chem. Eryk Witold Wolski @ MPI-MG Dep.
>Vertebrate Genomics
>Ihnestrasse 73 14195 Berlin 'v'
>tel: 0049-30-84131285 / \
>mail: wolski at molgen.mpg.de ---W-W----
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
More information about the R-help
mailing list