[R] Read a .sas7bdat file

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sun Mar 18 19:02:06 CET 2007


David Hajage wrote:
> Hello useRs,
>
> I would like to import a data frame in a sas format (.sas7bdat).
>
> I have installed "foreign" library, and tryed to use "read.ssd" function :
>
>   
>> read.ssd("these", "fus9706.sas7bdat")
>>     
> sh: sas: not found
> SAS failed.  SAS program at /tmp/RtmpPdVSST/file2ae8944a.sas
> a log and other error products should be in the vicinity
> ls: file2ae8944a.log: Aucun fichier ou répertoire de ce type
> NULL
> Warning message:
> Le code renvoyé par SAS est 32512 in: read.ssd("these", "fus9706.sas7bdat")
>
> Is it possible to read this file with R ?
>
>   
Not until SAS or someone else comes up with a description of the file 
format. Till then, you need SAS itself or one of a couple of 
special-purpose closed-source conversion tools (Stat/Transfer, DBMS/Copy).
> Thank you for your help.
>
> David
>
>



More information about the R-help mailing list