[R] How to import SAS data in R?

Duncan Murdoch murdoch.duncan at gmail.com
Fri Jul 6 19:24:53 CEST 2012

On 06/07/2012 1:11 PM, C W wrote:
> Hi all
> I have a large SAS data set, how do I get it read in R?
> The data is too big (about 400,000 rows by 100 columns) to be saved as an
> Excel file.  How should I get it read in R?  Any packages?  I don't seem to
> find any.

You could write it out in some plain delimited format, e.g. CSV or 
tab-delimited.  Watch out for special characters in strings that confuse 
R when it reads it in (e.g. commas in unquoted CSV strings, quotes 
within strings, etc.)

Duncan Murdoch

More information about the R-help mailing list