Re: [R] difference between assignment syntax - vs =

2009-02-23 Thread Thomas Mang
Hi, thanks for the link. In the bottom part of the relevant section, you say: Standard advice is to avoid using '=' when you mean '-' Is this a formal, generally accepted (R community) advice, or does it reflect you personal opinion? Note I am not asking this question as to criticize by

Re: [R] difference between assignment syntax - vs =

2009-02-23 Thread Patrick Burns
Since this topic came up, I've been thinking that that sentence needs more work. The standard is not from me -- I'm a bit more agnostic than the statement although I personally always use '-'. I'm thinking a revised version might be something along the lines of: Standard advice from most

Re: [R] difference between assignment syntax - vs =

2009-02-23 Thread Thomas Lumley
On Mon, 23 Feb 2009, Patrick Burns wrote: Since this topic came up, I've been thinking that that sentence needs more work. The standard is not from me -- I'm a bit more agnostic than the statement although I personally always use '-'. I'm thinking a revised version might be something along

Re: [R] difference between assignment syntax - vs =

2009-02-23 Thread Wacek Kusnierczyk
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

Re: [R] difference between assignment syntax - vs =

2009-02-23 Thread Ken Knoblauch
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.

Re: [R] difference between assignment syntax - vs =

2009-02-23 Thread Wacek Kusnierczyk
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

Re: [R] difference between assignment syntax - vs =

2009-02-23 Thread Kenneth Knoblauch
It's easier to read. Better machine-human interaction. ergonomic: (esp. of workplace design) intended to provide optimum comfort and to avoid stress or injury. Quoting Wacek Kusnierczyk waclaw.marcin.kusnierc...@idi.ntnu.no: Ken Knoblauch wrote: Wacek Kusnierczyk

[R] difference between assignment syntax - vs =

2009-02-21 Thread Thomas Mang
Hi, Both operators - and = can be used to make an assignment. My question is: Is there a semantic difference between these two? Some time ago, I remember I have read that because of some reason, one should be given preference over the other - but I cannot remember the source, nor the

Re: [R] difference between assignment syntax - vs =

2009-02-21 Thread Esmail Bonakdarian
Patrick Burns wrote: 'The R Inferno' page 78 is one source you can look at. Patrick Burns wow .. nice! .. thanks for posting this reference. Esmail __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read