[R] difference between assignment syntax <- vs =
Waclaw.Marcin.Kusnierczyk at idi.ntnu.no
Mon Feb 23 12:49:08 CET 2009
Ken Knoblauch wrote:
> Wacek Kusnierczyk <Waclaw.Marcin.Kusnierczyk <at> idi.ntnu.no> writes:
>> Thomas Lumley wrote:
>>> Although it's probably true that most long-time R users use <-, this
>>> is at least in part because a long-time R user would initially have
>>> had to use <-, since = wasn't available in the distant past.
>>> I would say that it's entirely a matter of taste -- the things that
>>> otherwise could have been traps are mostly syntax errors. The only
>>> proviso is that if you post code using = it is (even more) important
>>> to leave spaces around the = than it would be for <-.
>> the reason being ...?
More information about the R-help