In a clean environment under R-2.1.0 on Linux:
> x <- 1:5
> x[3] <<- 9
Error: Object "x" not found

Isn't that odd?  (Note x <<- 9 works just fine.)

Why am I doing this?  Because I'm stepping through code that
normally lives inside a function, where "<<-" is appropriate.

-- David Brahm ([EMAIL PROTECTED])

______________________________________________
R-help@stat.math.ethz.ch 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