How do you use “<<-” (scoping assignment) in R?
问题 I just finished reading about scoping in the R intro, and am very curious about the <<- assignment. The manual showed one (very interesting) example for <<- , which I feel I understood. What I am still missing is the context of when this can be useful. So what I would love to read from you are examples (or links to examples) on when the use of <<- can be interesting/useful. What might be the dangers of using it (it looks easy to loose track of), and any tips you might feel like sharing. 回答1: