[R] Reading SAS version 8 data into R

Patrick McKnight pem at theriver.com
Fri Aug 24 06:58:59 CEST 2001


Soren,

The following code runs just fine from SAS V.8 and imports into R without 
a hitch:

libname xxx sasv5xpt 'yourfilenamehere';

data xxx.dat;
set perm.yoursasv8data;
run;


Hope this helps.

Cheers,

Patrick



> Date: Thu, 23 Aug 2001 23:04:05 +0200
> From: =?iso-8859-1?Q?S=F8ren_H=F8jsgaard?= <sorenh at mail.dk>
> Subject: [R] Reading SAS version 8 data into R

> Hi,

> SAS transport files created with the xport engine in SAS can be read 
using read.xport.  However, the xport engine only works with SAS version 6, 
and consequently long variable names are not allowed...

> Can anyone tell me how to get SAS data (ver 8) into R (easily)?

> Thanks in advance

> Søren Højsgaard
> sorenh at agrsci.dk    http://www.jbs.agrsci.dk/~sorenh
> - 
-------------------------------------------------------------------------


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 mailing list