[R] Modulus operator??

M. Edward Borasky znmeb at aracnet.com
Sat Apr 28 20:51:45 CEST 2001

I'm trying to do a modulus operator in R-1.2.2 on Windows -- specific

R : Copyright 2001, The R Development Core Team
Version 1.2.2 Patched (2001-03-22)

Here's what the R language manual says:

"R contains a number of operators. They are listed in the table below.


%  Modulus, binary"

Here's what happens on the R console:

> records <- 100000
> modulus <- 1000
> records % modulus
Error: syntax error
> records / modulus
[1] 100

I haven't tried this on Linux yet, so I don't know if it's Windows-specific.
I did try coercing the values to integer with "as.integer" and it didn't
help. Am I leaving something out??

M. Edward (Ed) Borasky, Chief Scientist, Borasky Research
http://www.borasky-research.net  http://www.aracnet.com/~znmeb
mailto:znmeb at borasky-research.com  mailto:znmeb at aracnet.com

If there's nothing to astrology, how come so many famous men were born on

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list