[R] SAS and R
flom at ndri.org
Fri Apr 26 15:59:09 CEST 2002
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?
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
More information about the R-help