[R] Definition of = vs. <-

Wacek Kusnierczyk Waclaw.Marcin.Kusnierczyk at idi.ntnu.no
Wed Apr 1 23:30:34 CEST 2009


Martin Morgan wrote:
>
>> x <- y = 1
>>     
> Error in (x <- y) = 1 : object 'x' not found
>   

this error does not make sense to me...  if the precedence is as the
parentheses suggest, the error should be like in

    (x <- y)
    # error: object 'y' not found

vQ




More information about the R-help mailing list