Sunday, August 3, 2014

Difference between `=` and `<-` in R

  1. The operators <- and = assign into the environment in which they are evaluated. 
  2. The operator <- can be used anywhere.
  3. 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.

No comments:

Post a Comment