1

Why are operators = and <- different in R?

If I run the code below

x <- y <- 10
x = y <- 10
x = y = 10
x <- y = 10

I get error message:

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

So I think I sort of understand why there is a difference, still I can't quite grasp what the it is. Who came up with this? What's the logic behind the distinction?

I believed in the system!

0 Answers0