[R-sig-teaching] The pedagogy of the assignment operator
Gabor Grothendieck
ggrothendieck at gmail.com
Wed Oct 27 01:59:18 CEST 2010
On Tue, Oct 26, 2010 at 3:10 PM, Murray Jorgensen <maj at waikato.ac.nz> wrote:
> Greetings all,
>
> in my own R code I have used various forms of the R assignment operator at
> different times in my life. There are arguments for and against each choice.
>
> A question I would like this sig is whether there are any specifically
> teaching reasons for preferring one form over another?
>
> A second question, mainly to clarify the first, is whether different forms
> might be preferred for different types of student?
>
> Awaiting responses with interest - Murray
<- is less error prone so you always want to use that. It might be
argued that there are only a few cases where it matters but if you run
into one of those cases you will be sorry you did not standardize on
using <- .
--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com
More information about the R-sig-teaching
mailing list