Assignment Operators in R: '<-' and '<< -'

What are the differences in assignment operations <-and <<-in R?

And when should you use it <<-?

+4
source share
1 answer

<-assigns an object to the environment in which it is evaluated (local area). <<-assigns the object to the next higher environment in which the name resides, or the global namespace if the name is not found. See the documentation here .

<<- , . <<- , . return.

Advanced R.

+6

Source: https://habr.com/ru/post/1528193/


All Articles