ggrothendieck at myway.com
Wed Dec 29 18:32:12 CET 2004
From: <Ted.Harding at nessie.mcc.ac.uk>
> What's the best place to look for the details on operator
> precedence and the like in R?
Check out the language reference manual in the directory
On Windows its also accessible from R via
Help | Manuals | R Language
The manuals can also be found online. e.g. Google for
r-lang "infix and prefix"
to find the relevant section.
By the way, even without this problem seq is better than : in
programs as it has better boundary behavior. Consider 1:n vs.
seq(length = n). For n=0 the : operator actually generates the
vector c(1,0) whereas the seq solution gives a zero length
vector, as desired. Even seq has problems unless you use
The : operator is mainly useful if you are typing throwaway
code directly into R.
More information about the R-help