+ 2
In R, what is the difference between = and <-
4 odpowiedzi
+ 3
operators <- and = assign into the environment in which they are evaluated. The operator <- can be used anywhere, whereas the operator = is only allowed at the top level (e.g., in the complete expression typed at the command prompt) or as one of the subexpressions in a braced list of expressions.
+ 2
👏🏻👏🏻👍🏻😗👌🏻🤠🤠
+ 2
There's yet another assignment operator:
<<-
Though, I have never used it
https://statisticsglobe.com/assignment-operators-in-r
+ 2
You may also have a look at this thread (similar question):
https://www.sololearn.com/Discuss/2749966/?ref=app