Re: [R] Creating SAS transport files

From: Kevin E. Thorpe <>
Date: Sat 12 Aug 2006 - 04:23:13 EST

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:  Tel: 416.946.8081  Fax: 416.946.3297

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Sat Aug 12 07:35:48 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 12 Aug 2006 - 10:19:10 EST.

Mailing list information is available at Please read the posting guide before posting to the list.