Skip to content

R-help

5 messages · Jim Gustafsson, Frank E Harrell Jr, Marc Schwartz +1 more

#
On Thu, 12 Feb 2004 12:12:01 +0100
Jim Gustafsson <jgu at codan.dk> wrote:

            
Just reverse the procedure you use when you put R code into SAS.   ;)

---
Frank E Harrell Jr   Professor and Chair           School of Medicine
                     Department of Biostatistics   Vanderbilt University
#
On Thu, 2004-02-12 at 06:36, Frank E Harrell Jr wrote:
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
#
On 12-Feb-04 Marc Schwartz wrote:
Been there, done that ... A lot of Fortran programs can be quite easily
re-structured into C; in the limit, f2c is your friend ... I don't think
SAS could be that easily re-written as R, though; and we certainly do
not have sas2r yet!

Ted.


--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 167 1972
Date: 12-Feb-04                                       Time: 16:42:36
------------------------------ XFMail ------------------------------
#
On Thu, 2004-02-12 at 10:42, Ted.Harding at nessie.mcc.ac.uk wrote:
Thanks for the clarification Ted. I was more thinking along the lines of
"native" compilation as opposed passing the code to a
filtering/conversion program prior to compilation.

I perhaps could have picked a better example of two languages where an
intermediate filter/conversion program was not available.  :-)

Marc