At 21:13 28/04/01 +0200, you wrote:>Full_Name: M. Edward Borasky
>Version: 1.2.2
>OS: both Windows 2000 and Red Hat Linux 7.1
>Submission from: (NULL) (208.130.245.188)
>
>
>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:
r-devel-request@stat.math.ethz.ch
>_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
._._>
>
The bug is in the manual (already mentioned by Duncan Murdoch, if I
remember), not in R. The operator you are looking for is %%
See:
help("%%")
Emmanuel Paradis
Laboratoire de Paléontologie
Institut des Sciences de l'Évolution
Université Montpellier II
F-34095 Montpellier cédex 05
France
phone: +33 4 67 14 39 64
fax: +33 4 67 14 36 10
mailto:paradis@isem.univ-montp2.fr
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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:
r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._