Skip to content
Prev 206385 / 398506 Next

advice/opinion on "<-" vs "=" in teaching R

On Fri, Jan 15, 2010 at 2:38 PM, Ted Harding
<Ted.Harding at manchester.ac.uk> wrote:
For example:
Error in system.time(x = xyplot(1 ~ 1)) :
  unused argument(s) (x = xyplot(1 ~ 1))
user  system elapsed
  0.008   0.000   0.005

Of course, <- would not have had a problem. This is the most common
problem I personally have had using = for assignment (better
readability of <- is also a huge plus).

-Deepayan