[R] Reading xpt files into R

peter dalgaard pd@|gd @end|ng |rom gm@||@com
Sat Apr 14 11:32:37 CEST 2018


That's what he tried, but the bottom line is that just because something is called foo.xpt there is no guarantee that it actually is a SAS XPORT file. Firefox plugins use the same extension but it could really be anything - naming conventions are just that: conventions.

So dig deeper and find out what the file really is (or was supposed to be). 

-pd

> On 14 Apr 2018, at 00:18 , David Winsemius <dwinsemius using comcast.net> wrote:
> 
> There is a read.xport function in the foreign package and I think most people would have chosen that one as a first attemp. It's part of the standard R distribution. It refers you to https://support.sas.com/techsup/technote/ts140.pdf for details on the format.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes using cbs.dk  Priv: PDalgd using gmail.com




More information about the R-help mailing list