Re: [R] Can't get sample function from An Introduction to R to work

2005-07-16 Thread Spencer Graves
When you copied it into MS Word, did you Copy - paste special - unformatted text? This trick sometimes might expose (or eliminate) nonprinting characters or characters with special attributes that might have created the problem. spencer graves David Groos wrote: Thank

Re: [R] Can't get sample function from An Introduction to R to work

2005-07-16 Thread Thomas Lumley
On Fri, 15 Jul 2005, David Groos wrote: Thank you-all very much for your help, your responses and help has been very encouraging. The following doesn't close the case but it tables it... First I copied Ken's code into my R Console and...it worked great! That was baffling as it looked

Re: [R] Can't get sample function from An Introduction to R to work

2005-07-16 Thread David Groos
On Jul 16, 2005, at 9:58 AM, Thomas Lumley wrote: On Fri, 15 Jul 2005, David Groos wrote: Thank you-all very much for your help, your responses and help has been very encouraging. The following doesn't close the case but it tables it... First I copied Ken's code into my R Console

Re: [R] Can't get sample function from An Introduction to R to work

2005-07-15 Thread Bret Collier
David, If below is exactly what you typed, check your code again, I think you are missing a '}' after the last 2 parentheses. HTH, Bret David Groos [EMAIL PROTECTED] 7/15/2005 3:40:01 PM I'm trying to figure out R, a piece at a time, hours at a time... I was trying to copy the sample

Re: [R] Can't get sample function from An Introduction to R to work

2005-07-15 Thread Marc Schwartz (via MN)
On Fri, 2005-07-15 at 15:40 -0500, David Groos wrote: I'm trying to figure out R, a piece at a time, hours at a time... I was trying to copy the sample function in, An Introduction to R (for version 2.1.0) by W. N. Venables, D. M. Smith, page 42. Section 10.1 Simple examples provides a

Re: [R] Can't get sample function from An Introduction to R to work

2005-07-15 Thread Spencer Graves
Also, are you doing this with a version of R that will allow you to keep your scripts in separate files and run them one line at a time? Rgui allows this, and many people use different editors, e.g, XEmacs with ESS (EMacs Speaks Statistics). Some editors (like ESS) help with

Re: [R] Can't get sample function from An Introduction to R to work

2005-07-15 Thread Peter Dalgaard
Bret Collier [EMAIL PROTECTED] writes: David, If below is exactly what you typed, check your code again, I think you are missing a '}' after the last 2 parentheses. That's not supposed to cause a syntax error, just another '+'. I can copy and paste the code as written and not get an error:

Re: [R] Can't get sample function from An Introduction to R to work

2005-07-15 Thread David Groos
Thank you-all very much for your help, your responses and help has been very encouraging. The following doesn't close the case but it tables it... First I copied Ken's code into my R Console and...it worked great! That was baffling as it looked identical to mine. I did not explicitly say