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 -- Bill Knebel, PharmD, Ph.D. Principal Scientist Metrum Research Group 2 Tunxis Road Suite 112 Tariffville, CT 06081 email: billk at metrumrg.com tel: (860) 930-1370
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
See the argument package="SAS" to the function write.foreign() in the package foreign. HTH Maurice Haynes -----Original Message----- From: Bill Knebel [mailto:billk at metrumrg.com] Sent: Friday, August 11, 2006 2:16 PM To: r-help at stat.math.ethz.ch Subject: [R] Creating SAS transport files 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 -- Bill Knebel, PharmD, Ph.D. Principal Scientist Metrum Research Group 2 Tunxis Road Suite 112 Tariffville, CT 06081 email: billk at metrumrg.com tel: (860) 930-1370 ______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.