0.7996266 0.7997703 0.8002355 0.8009229 0.8014502 0.8015201
[29] 0.8013688 0.8016032 0.8025078 0.8035148 0.8040642
From: Bert Gunter gunter.ber...@gene.com
Cc: r-help@r-project.org
Sent: Wednesday, October 5, 2011 2:25 PM
Subject: Re: [R] SPlus to R
Consider
0.8014502 0.8015201
[29] 0.8013688 0.8016032 0.8025078 0.8035148 0.8040642
From: Bert Gunter gunter.ber...@gene.com
Cc: r-help@r-project.org
Sent: Wednesday, October 5, 2011 2:25 PM
Subject: Re: [R] SPlus to R
Consider:
f - function(x){ x- 10;x^2}
f()
[1
On Oct 6, 2011, at 11:17 AM, Scott Raynaud wrote:
I'm re-posting this since it did not appear at the end of the
thread. Sorry for the inconvenience. Not sure why it's giving the
message: An embedded and charset-unspecified text was scrubbed...
As far as I know my replies are set up as
Hi Scott,
I am not familiar with S-Plus (though many aspects are quite similar
to R). I will say that your function looks approximately correct. I
am not familiar with the ss.rand function. I searched, and found some
things that I suspect are similar in the packages MBESS, but without
knowing
When R was invented, nearly all of the core R functions were
written to produce exactly the same answers as those returned by S-Plus.
Some very minor exceptions were made for time series functions, for
example, where better algorithms in R produced slightly better fits.
There may be
I had thought that the problem might
be:
return(ne=ne1)
since R doesn't support that any more.
But when I tried it, I got results
(just without the name on the output).
Better would be to change that line to:
list(ne=ne1)
('return' is seldom necessary in either
R or S+.)
I'd suggest putting
On Wed, Oct 5, 2011 at 2:53 AM, Scott Raynaud scott.rayn...@yahoo.com wrote:
I'm trying to convert an S-Plus program to R. Since I'm a SAS programmer I'm
not facile is either S-Plus or R, so I need some help. All I did was convert
the underscores in S-Plus to the assignment operator -.
: Re: [R] SPlus to R
te:
I'm trying to convert an S-Plus program to R. Since I'm a SAS programmer I'm
not facile is either S-Plus or R, so I need some help. All I did was convert
the underscores in S-Plus to the assignment operator -. Here are the first
few lines of the S-Plus file
Rowlingsonb.rowling...@lancaster.ac.uk
Cc: r-help@r-project.orgr-help@r-project.org Sent: Wednesday,
October 5, 2011 4:02 AM Subject: Re: [R] SPlus to R
te:
I'm trying to convert an S-Plus program to R. Since I'm a SAS
programmer I'm not facile is either S-Plus or R, so I need some
help. All I did
-project.orgr-help@r-project.org
Sent: Wednesday, October 5, 2011 4:02 AM
Subject: Re: [R] SPlus to R
te:
I'm trying to convert an S-Plus program to R. Since I'm a SAS programmer I'm not
facile is either S-Plus or R, so I need some help. All I did was convert the
underscores in S-Plus
On Wed, Oct 5, 2011 at 12:44 PM, Scott Raynaud scott.rayn...@yahoo.com wrote:
Hope I did this right. I repeated what I'd done before:
1) Opened script
2) Selected run all (this produced my inital post
Then as suggested I:
3) Typed ls()
4) Saw that the function was present and issued
It looks like this code was written for S+ 4.5 (aka '2000')
or before, which was based on S version 3. Try changing
return(name1=value1, name2=value2)
to
return(list(name1=value1, name2=value2))
In S+ from 5.0 onwards return(name=value) or return(name1=value1,
name2=value2) throws away the
@r-project.org
Subject: Re: [R] SPlus to R
It looks like this code was written for S+ 4.5 (aka '2000')
or before, which was based on S version 3. Try changing
return(name1=value1, name2=value2)
to
return(list(name1=value1, name2=value2))
In S+ from 5.0 onwards return(name=value
On Wed, Oct 5, 2011 at 4:54 PM, Scott Raynaud scott.rayn...@yahoo.com wrote:
It seems I have things set up correctly. I suspect that the arguments
sshc(100,10) are the isuue. It seems that the 100,10 is not necessary since
the code itself specifies the arguments. It runs and produces a power
:08 AM
To: Scott Raynaud
Cc: r-help@r-project.org
Subject: Re: [R] SPlus to R
On Wed, Oct 5, 2011 at 4:54 PM, Scott Raynaud scott.rayn...@yahoo.com wrote:
It seems I have things set up correctly. I suspect that the arguments
sshc(100,10) are the isuue. It seems that the 100,10
; r-help@r-project.org
r-help@r-project.org
Sent: Wednesday, October 5, 2011 8:03 AM
Subject: Re: [R] SPlus to R
On 05.10.2011 13:44, Scott Raynaud wrote:
Hope I did this right. I repeated what I'd done before:
1) Opened script
2) Selected run all (this produced my inital post
), right?
I;m still not sure, however, why that would be necessary since it's hard coded.
From: Barry Rowlingson b.rowling...@lancaster.ac.uk
Cc: r-help@r-project.org r-help@r-project.org
Sent: Wednesday, October 5, 2011 9:27 AM
Subject: Re: [R] SPlus to R
ote
, however, why that would be necessary since it's
hard coded.
From: Barry Rowlingson b.rowling...@lancaster.ac.uk
Cc: r-help@r-project.org r-help@r-project.org
Sent: Wednesday, October 5, 2011 9:27 AM
Subject: Re: [R] SPlus to R
ote:
Hope I did
18 matches
Mail list logo