Is this expected behavior?

> z <- 1:5
> z[1] <<- 0
Error in z[1] <<- 0 : object "z" not found

The documentation seems to suggest that z will be found in the global
environment and modified accordingly.

Best,
Hsiu-Khuern.

______________________________________________
R-help@r-project.org mailing list
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.

Reply via email to