R

Asked • 05/28/19

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

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?

1 Expert Answer

By:

Aref E. answered • 05/29/19

Tutor
4.9 (47)

Wrote Harvard's Manual for R

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.