Re: [R] assign using =

2011-06-27 Thread Gabor Grothendieck
On Mon, Jun 27, 2011 at 10:34 AM, Berry Boessenkool wrote: > > > Hey all, > > I learned that using the equals sign "=" to assign objects is generally OK, > but will not work in some cases. > As I always use "<-" for assignments, I have not encoutered any problems. > > Could somebody provide an ex

Re: [R] assign using =

2011-06-27 Thread Kevin E. Thorpe
On 06/27/2011 10:34 AM, Berry Boessenkool wrote: Hey all, I learned that using the equals sign "=" to assign objects is generally OK, but will not work in some cases. As I always use "<-" for assignments, I have not encoutered any problems. Could somebody provide an example or explanation, w

Re: [R] assign using =

2011-06-27 Thread David Stevens
I'm not an expert but some third party libraries won't recognize = as an assignment for some objects (I learned this empirically) when the assignment is made within a function. Using <- protects you from these unknows, as you have discovered on your own. Regards David On 6/27/2011 8:34 AM, Be

[R] assign using =

2011-06-27 Thread Berry Boessenkool
Hey all, I learned that using the equals sign "=" to assign objects is generally OK, but will not work in some cases. As I always use "<-" for assignments, I have not encoutered any problems. Could somebody provide an example or explanation, why getting used to "=" is not a good idea? Or is i