Section 10.3.3 in the R Language Manual, as distributed with R.

Andy

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 05, 2003 1:52 PM
> To: [EMAIL PROTECTED]
> Subject: [R] reserved words documentation
> 
> 
> I wanted a data frame component to be named "next", for example:
> 
> > m <- data.frame (matrix (0, nrow=2, ncol=2))
> > names (m) <- c("prev", "next")
> > m
>   prev next
> 1    0    0
> 2    0    0
> 
> But "next" being reserved prevents $ indexing without quotes:
> 
> > m$next
> Error: syntax error
> > m$"next"
> [1] 0 0
> 
> Although they are mostly obvious, I can't find in the documentation
> (using Jon Baron's searcher, at least) a list of these words.  Am I
> missing the documentation, or could such a list be added to a future
> release?
> 
> thanks,
> Denis
> 
> ______________________________________________
> [EMAIL PROTECTED] mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> 

------------------------------------------------------------------------------

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to