Date: Mon, 23 Dec 2002 20:18:41 -0600
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Aldi Kraja <aldi@WUBIOS.WUSTL.EDU>
Subject: Re: Reading SAS XPORT format library into R
Content-Type: text/plain; charset=us-ascii; format=flowed
I have done plenty of reading of data from SAS into Splus.
I use the Splus importData function with the specification type="SAS7"
(which corresponds to sas7bdat), there are many other options including
SAS transport file importing.
It works fine and on the fly. Another way around is to use a simple sas
program, with the following a few statements:
filename somename "/yourpath/myfilename.txt";
file somename < you can use here options such as lrecl= etc.>;
put <write the names of your variables>;
This way you created an ASCII file (myfilename.txt) which can be read
quite easy from Splus or R by using the function read.table. Do a
?importData (in Splus) and ?read.table (in Splus and R) and you will see
many other options.
Stephen Arthur wrote:
> Has anyone on the list done this successfully using
> either the R functions, 'read.xport' or 'read.ssd'?
> If you have, could you send me a dummy SAS data set
> and the R command you used to get this job done?
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.