LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2002, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 23 Dec 2002 20:18:41 -0600
Reply-To:     aldi@wubios.wustl.edu
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Aldi Kraja <aldi@WUBIOS.WUSTL.EDU>
Organization: WU
Subject:      Re: Reading SAS XPORT format library into R
Content-Type: text/plain; charset=us-ascii; format=flowed

Hi, 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"; data _null_; file somename < you can use here options such as lrecl= etc.>; put <write the names of your variables>; run;

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. HTH, Aldi

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? > > Thanks, > > Stephen > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com


Back to: Top of message | Previous page | Main SAS-L page