[R] Creating SAS transport files

Kevin E. Thorpe kevin.thorpe at utoronto.ca
Fri Aug 11 20:23:13 CEST 2006

Bill Knebel wrote:
> Is there any package in R to create a SAS transport file?  I checked the 
> help archive and did not find any references to creating SAS transport 
> files in R, only reading them.
> Bill

I have used write.foreign in the foreign package.  This
produces a text data file and a SAS program to read the
data into SAS.

It has worked well for my uses.  As for exporting to a
transport file directly, I do not know.

Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Department of Public Health Sciences
Faculty of Medicine, University of Toronto
email: kevin.thorpe at utoronto.ca  Tel: 416.946.8081  Fax: 416.946.3297

More information about the R-help mailing list