From:   <[EMAIL PROTECTED]>

> 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
   .../R/rw2001/doc/manual/r-lang.pdf .

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
length= .

The : operator is mainly useful if you are typing throwaway 
code directly into R.

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to