Skip to content

Reading sas7bdat files into R

2 messages · Sashi Challa, jthetzel

#
Hi All,

I am trying to import a .sas7bdat file into R.

I tried using Hmisc package's sasxport.get() function.

temp <- sasxport.get("path\abcd.sas7bdat")

I get an error that says "Error in lookup.xport(file) : file not in SAS transfer format"

I am not familiar with SAS transfer format.

Could somebody please clarify what is it that I am missing,

Thanks for your time,

Sashi
2 days later
#
Sashi,

There is also a command line utility for sas7bdat files called dsread
(http://www.oview.co.uk/dsread/).  I've never used it, but it looks good. 
Built for Windows, but should run under Linux with Wine.

Jeremy

Jeremy T. Hetzel
Boston University