I know how to use <-
and ->
, and there are several writeups on the difference between equals
assignment & arrow assignment,
R is meant to have a syntax which is fairly natural for expressing mathematics. It is interesting to note that ->
is actually common notation in describing some elementary row operations on matrices. For example, s*R_i -> R_i
would be used to denote the operation of replacing row i by s times row i. Something like 2*A[1,] -> A[1,]
is perfectly valid R. I don't know if these considerations had anything to do with the design decision, but it does show that it is a reasonable choice for a mathematical language.