Re: [R] R-help

About this list Date view Thread view Subject view Author view Attachment view

From: Marc Schwartz (MSchwartz@medanalytics.com)
Date: Fri 13 Feb 2004 - 00:59:34 EST


Message-id: <1076594374.14423.13.camel@localhost.localdomain>

On Thu, 2004-02-12 at 06:36, Frank E Harrell Jr wrote:
> On Thu, 12 Feb 2004 12:12:01 +0100
> Jim Gustafsson <jgu@codan.dk> wrote:
>
> > Hi,
> > I have a problem.
> > I would like to put my SAS-code into R.
> > Could I do that, if yes, how?
> >
> >
> > Best regards
> > Jim Gustafsson
>
> Just reverse the procedure you use when you put R code into SAS. ;)

This reminds me of a quote from Albert Einstein:

"The significant problems we face cannot be solved at the same level of
thinking we were at when we created them."

;-)

Jim, just for clarification, do you truly mean the SAS *code* or did you
mean the SAS *dataset*?

If the former, as you are probably picking up, no go. There is no direct
translation. It would be like expecting a C compiler to compile Fortan
code.

If the latter, see either read.ssd() and friends in the 'foreign'
package, which is part of the typical R install OR see Frank's sas.get()
function in the Hmisc package on CRAN. In both cases, you will need an
executable copy of SAS available.

HTH,

Marc Schwartz

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 01 Mar 2004 - 07:05:13 EST