[R] modulus operator?
Paul
paul at minervaplaats.cx
Mon May 19 18:15:24 CEST 2003
Hoi Wolski,
--On maandag 19 mei 2003 18:07 +0200 Wolski <wolski at molgen.mpg.de> wrote:
> I havent found any.
> I am using this.
>
> mod<-function(x,m)
> {
> t1<-floor(x/m)
> return(x-t1*m)
> }
>
Isn't that just simply "%%" (or if i'm mistaken, perhaps '%/%')?
regards,
Paul
--
Paul Lemmens
NICI, University of Nijmegen ASCII Ribbon Campaign /"\
Montessorilaan 3 (B.01.03) Against HTML Mail \ /
NL-6525 HR Nijmegen X
The Netherlands / \
Phonenumber +31-24-3612648
Fax +31-24-3616066
More information about the R-help
mailing list