Re: [R] advice/opinion on - vs = in teaching R

2010-01-18 Thread S Ellison
Thomas Lumley tlum...@u.washington.edu 15/01/2010 16:07 Which should I use or does it matter, please? I would say to use = if you are teaching people familiar with C or Java, and to use - otherwise. Nothing like an option to induce polarisation! '=' is used in at least two contexts in R,

Re: [R] advice/opinion on - vs = in teaching R

2010-01-18 Thread Thomas Lumley
On Mon, 18 Jan 2010, S Ellison wrote: Thomas Lumley tlum...@u.washington.edu 15/01/2010 16:07 Which should I use or does it matter, please? I would say to use = if you are teaching people familiar with C or Java, and to use - otherwise. Nothing like an option to induce polarisation!

Re: [R] advice/opinion on - vs = in teaching R

2010-01-16 Thread Jim Lemon
On 01/15/2010 10:08 PM, Peter Dalgaard wrote: Barry Rowlingson wrote: On Fri, Jan 15, 2010 at 3:45 AM, Erin Hodgesserinm.hodg...@gmail.comwrote: Hi R People: I'm teaching a statistical computing class using R starting next week (yay!) and I have an opinion type question, please. I'm old

Re: [R] advice/opinion on - vs = in teaching R

2010-01-15 Thread Barry Rowlingson
On Fri, Jan 15, 2010 at 3:45 AM, Erin Hodgess erinm.hodg...@gmail.comwrote: Hi R People: I'm teaching a statistical computing class using R starting next week (yay!) and I have an opinion type question, please. I'm old school and use - in an assignment. You call that 'old school'?? I

Re: [R] advice/opinion on - vs = in teaching R

2010-01-15 Thread Barry Rowlingson
On Fri, Jan 15, 2010 at 6:57 AM, Ted Harding ted.hard...@manchester.ac.ukwrote: There is at least one context where the distinction must be preserved. Example: pnorm(1.5) # [1] 0.9331928 pnorm(x=1.5) # Error in pnorm(x = 1.5) : unused argument(s) (x = 1.5) pnorm(x-1.5) # [1]

Re: [R] advice/opinion on - vs = in teaching R

2010-01-15 Thread Ted Harding
On 15-Jan-10 08:14:04, Barry Rowlingson wrote: On Fri, Jan 15, 2010 at 6:57 AM, Ted Harding ted.hard...@manchester.ac.ukwrote: There is at least one context where the distinction must be preserved. Example: pnorm(1.5) # [1] 0.9331928 pnorm(x=1.5) # Error in pnorm(x = 1.5) : unused

Re: [R] advice/opinion on - vs = in teaching R

2010-01-15 Thread Deepayan Sarkar
On Fri, Jan 15, 2010 at 2:38 PM, Ted Harding ted.hard...@manchester.ac.uk wrote: On 15-Jan-10 08:14:04, Barry Rowlingson wrote: On Fri, Jan 15, 2010 at 6:57 AM, Ted Harding ted.hard...@manchester.ac.ukwrote: There is at least one context where the distinction must be preserved. Example:  

Re: [R] advice/opinion on - vs = in teaching R

2010-01-15 Thread Ted Harding
On 15-Jan-10 09:29:16, Deepayan Sarkar wrote: On Fri, Jan 15, 2010 at 2:38 PM, Ted Harding ted.hard...@manchester.ac.uk wrote: On 15-Jan-10 08:14:04, Barry Rowlingson wrote: On Fri, Jan 15, 2010 at 6:57 AM, Ted Harding ted.hard...@manchester.ac.ukwrote: There is at least one context where

Re: [R] advice/opinion on - vs = in teaching R

2010-01-15 Thread Berwin A Turlach
G'day all, On Fri, 15 Jan 2010 09:08:44 - (GMT) (Ted Harding) ted.hard...@manchester.ac.uk wrote: On 15-Jan-10 08:14:04, Barry Rowlingson wrote: [...] I would regard modifying a variable within the parameters of a function call as pretty tasteless. What does: foo(x-2,x) or

Re: [R] advice/opinion on - vs = in teaching R

2010-01-15 Thread Peter Dalgaard
Barry Rowlingson wrote: On Fri, Jan 15, 2010 at 3:45 AM, Erin Hodgess erinm.hodg...@gmail.comwrote: Hi R People: I'm teaching a statistical computing class using R starting next week (yay!) and I have an opinion type question, please. I'm old school and use - in an assignment. You

Re: [R] advice/opinion on - vs = in teaching R

2010-01-15 Thread Duncan Murdoch
Barry Rowlingson wrote: On Fri, Jan 15, 2010 at 6:57 AM, Ted Harding ted.hard...@manchester.ac.ukwrote: There is at least one context where the distinction must be preserved. Example: pnorm(1.5) # [1] 0.9331928 pnorm(x=1.5) # Error in pnorm(x = 1.5) : unused argument(s) (x = 1.5)

Re: [R] advice/opinion on - vs = in teaching R

2010-01-15 Thread John Kane
are trying to use any of the documentation. Not to mention they might slammed for bad syntax on the R-help mailing list. :) --- On Thu, 1/14/10, Erin Hodgess erinm.hodg...@gmail.com wrote: From: Erin Hodgess erinm.hodg...@gmail.com Subject: [R] advice/opinion on - vs = in teaching R To: R help r

Re: [R] advice/opinion on - vs = in teaching R

2010-01-15 Thread Thomas Lumley
On Fri, 15 Jan 2010, Barry Rowlingson wrote: On Fri, Jan 15, 2010 at 6:57 AM, Ted Harding ted.hard...@manchester.ac.ukwrote: There is at least one context where the distinction must be preserved. Example: pnorm(1.5) # [1] 0.9331928 pnorm(x=1.5) # Error in pnorm(x = 1.5) : unused

Re: [R] advice/opinion on - vs = in teaching R

2010-01-15 Thread Thomas Lumley
On Thu, 14 Jan 2010, Erin Hodgess wrote: Hi R People: I'm teaching a statistical computing class using R starting next week (yay!) and I have an opinion type question, please. I'm old school and use - in an assignment. However, I'm starting to see the = in the literature. Which should I use

[R] advice/opinion on - vs = in teaching R

2010-01-14 Thread Erin Hodgess
Hi R People: I'm teaching a statistical computing class using R starting next week (yay!) and I have an opinion type question, please. I'm old school and use - in an assignment. However, I'm starting to see the = in the literature. Which should I use or does it matter, please? Thanks for your

Re: [R] advice/opinion on - vs = in teaching R

2010-01-14 Thread Rolf Turner
On 15/01/2010, at 4:45 PM, Erin Hodgess wrote: Hi R People: I'm teaching a statistical computing class using R starting next week (yay!) and I have an opinion type question, please. I'm old school and use - in an assignment. However, I'm starting to see the = in the literature. Which

Re: [R] advice/opinion on - vs = in teaching R

2010-01-14 Thread Ted Harding
On 15-Jan-10 04:06:55, Rolf Turner wrote: On 15/01/2010, at 4:45 PM, Erin Hodgess wrote: Hi R People: I'm teaching a statistical computing class using R starting next week (yay!) and I have an opinion type question, please. I'm old school and use - in an assignment. However, I'm starting