What are the differences between "=" and "<-" assignment operators in R?
Asked 07 September, 2021
Viewed 503 times
  • 53
Votes

What are the differences between the assignment operators = and <- in R?

I know that operators are slightly different, as this example shows

x <- y <- 5
x = y = 5
x = y <- 5
x <- y = 5
# Error in (x <- y) = 5 : could not find function "<-<-"

But is this the only difference?

8 Answer