[R] SAS and R
Frank E Harrell Jr
fharrell at virginia.edu
Fri Apr 26 16:18:42 CEST 2002
Try the sas.get function in the Hmisc library. Hmisc is available for Linux/Unix/MacOSX and will soon be updated for Windows.
On Fri, 26 Apr 2002 09:59:09 -0400
Peter Flom <flom at ndri.org> wrote:
> I am sure this is elementary, but I can't figure it out.....
> I am using SAS v8.2 and R 1.4.1 on a Windows platform.
> I have a large (6 megabyte) file in .sd2 format. I want to import it into R.
> If necessary, I can create a smaller file, as I don't need all the variables that are in this file
> I downloaded the package foreign. I then tried to use PROC CPORT in SAS to create a transport file. It gave no error message, but I cannot find the file it wrote. I also tried the SAS Export Wizard, but this didn't work.
> What's the best way to do this?
> More specifically
> 1) How do I import any .sd2 file to R ?
> 2) Is it better to create and import small files as needed, or one huge file which would contain all the data?
> 3) Any other tips on how to do this?
> Thanks in advance
> Peter L. Flom, PhD
> Assistant Director, Statistics and Data Analysis Core
> Center for Drug Use and HIV Research
> National Development and Research Institutes
> 71 W. 23rd St
> New York, NY 10010
> (212) 845-4485 (voice)
> (917) 438-0894 (fax)
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
Frank E Harrell Jr Prof. of Biostatistics & Statistics
Div. of Biostatistics & Epidem. Dept. of Health Evaluation Sciences
U. Virginia School of Medicine http://hesweb1.med.virginia.edu/biostat
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help