From: Marc Schwartz (mschwartz@medanalytics.com)
Date: Tue 20 May 2003 - 02:26:20 EST
Message-id: <003b01c31e23$6282e520$0201a8c0@MARC>
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@stat.math.ethz.ch
>[mailto:r-help-bounces@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@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@molgen.mpg.de ---W-W----
>
>______________________________________________
>R-help@stat.math.ethz.ch mailing list
>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:50 EST