[Rd] Syntactically valid names
hadley at rice.edu
Wed Jul 6 14:58:02 CEST 2011
> That's two different issues:
>> y <- list()
>> y$... <- 2
>> y$..2 <- 3
>> y$break <- 4
> Error: unexpected 'break' in "y$break"
> Notice that there is nothing _syntactically_ wrong with ... & friends as names:
> ... <- 4
> It's the _evaluator_ that throws the error because the ...-name has a special interpretation.
Oh good point. Thanks for the clarification.
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
More information about the R-devel