[Rd] modulus operator gets syntax error (PR#925)
Sat, 28 Apr 2001 21:13:45 +0200 (MET DST)
Full_Name: M. Edward Borasky
OS: both Windows 2000 and Red Hat Linux 7.1
Submission from: (NULL) (18.104.22.168)
According to the R language manual, "%" is the modulus operator. However, on
both Windows and Linux, I get a syntax error when I type
records <- 100000
records % 1000
I tried wrapping the operands with "as.integer ()" but that didn't help either.
This is version 1.2.2 of R; I haven't had a chance to try it with R-1.2.3 yet,
but it does fail for me on both Windows 2000 and Red Hat Linux 7.1.
r-devel 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: email@example.com