On 25/02/16 00:11, Erich Neuwirth wrote:
?data
will show you that data is a reserved word!
That is simply not true. There is no mention in help for data of "data"
being a reserved word.
Moreover, if "data" *were* a reserved word " <- " wouldn't work either.
Compare:
data <- 42 # No problema.
and
TRUE <- 42 # Throws an error; "TRUE" really *is* a reserved word.
The real explanation is more subtle; it involves "locking" and the
rather intricate behaviour of "<<-", which I do no claim to understand.
The best advice is: DON'T USE "<<-" !!!
See fortune("dumb down").
cheers,
Rolf Turner
--
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.