Re: [R] Converting a function from Splus to R

2012-02-29 Thread William Dunlap
ilto:r-help-boun...@r-project.org] On > Behalf Of Prof Brian > Ripley > Sent: Wednesday, February 29, 2012 5:41 AM > To: R. Michael Weylandt > Cc: r-help@r-project.org; Freddy Hernández > Subject: Re: [R] Converting a function from Splus to R > > On 29/02/2012 13:24, R. Mich

Re: [R] Converting a function from Splus to R

2012-02-29 Thread R. Michael Weylandt
Oh...that does make more sense -- seemed like a rather odd choice of variable name. Michael On Wed, Feb 29, 2012 at 8:40 AM, Prof Brian Ripley wrote: > On 29/02/2012 13:24, R. Michael Weylandt wrote: >> >> Change the name to something syntactically valid? The problem is that >> you can't (well,

Re: [R] Converting a function from Splus to R

2012-02-29 Thread Prof Brian Ripley
On 29/02/2012 13:24, R. Michael Weylandt wrote: Change the name to something syntactically valid? The problem is that you can't (well, you can, but it's ill advised) have variable names beginning with numbers. They don't seem to be used much so there won't be much trouble in that. I think that

Re: [R] Converting a function from Splus to R

2012-02-29 Thread Berend Hasselman
On 29-02-2012, at 14:02, Freddy Hernández wrote: > I have a function written for Splus, when I run it in R I obtain get an error > because the function has the elements "0.d0" and "2.d0". How can I change it > to run in R? > > The function can be found in page 230 from > http://www.stat.wisc.edu

Re: [R] Converting a function from Splus to R

2012-02-29 Thread R. Michael Weylandt
Change the name to something syntactically valid? The problem is that you can't (well, you can, but it's ill advised) have variable names beginning with numbers. They don't seem to be used much so there won't be much trouble in that. Michael 2012/2/29 Freddy Hernández : > I have a function writt

[R] Converting a function from Splus to R

2012-02-29 Thread Freddy Hernández
I have a function written for Splus, when I run it in R I obtain get an error because the function has the elements "0.d0" and "2.d0". How can I change it to run in R? The function can be found in page 230 from http://www.stat.wisc.edu/~mchung/teaching/stat471/stat_computing.pdf Function is as f