[R] Help with sas.get

Frank E Harrell Jr f.harrell at vanderbilt.edu
Tue Aug 2 23:00:13 CEST 2005


Wensui Liu wrote:
> Jorge,
> 
> My understanding about sas.get is that it actually runs SAS in the
> backend, output the SAS data, and then import it into R again.

He has SAS running locally.
> 
> It might be better to convert SAS to csv format and read it into R.

For that, the Hmisc package's sasxport.get(..., method='csv'...) can help.

Frank

> 
> On 8/2/05, Jorge Sirgo <JSirgo at navigantconsulting.com> wrote:
> 
>>I am running R 2.0.1 on Windows trying to import a SAS dataset into R
>>using sas.get.
>>
>>It is a small SAS dataset, but when I write the command, the SAS window
>>opens but never appears to complete.  Am I doing something wrong?
>>
>>Here is an example of my command:
>>
>>temp <- sas.get("J:/blah","name")
>>
>>Jorge
>>        [[alternative HTML version deleted]]
>>
>>______________________________________________
>>R-help at stat.math.ethz.ch mailing list
>>https://stat.ethz.ch/mailman/listinfo/r-help
>>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>>
> 
> 
> 


-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University




More information about the R-help mailing list