[R] Writing dataframes to SAS XPT format

Dennis Fisher fisher at plessthan.com
Wed Mar 17 17:32:23 CET 2010


On occasion, I need to output an R dataframe to a file in SAS XPT format.  Although the foreign package supports reading of XPT files and writing to a format that SAS can read, it does not support writing to XPT format (confirmed with Thomas Lumley, the author of write.foreign).

Has anyone developed such a function?  If so, would you be willing to share it?  Better yet, post it to CRAN so that it is available to all users.


Dennis Fisher MD
P < (The "P Less Than" Company)
Phone: 1-866-PLessThan (1-866-753-7784)
Fax: 1-866-PLessThan (1-866-753-7784)

More information about the R-help mailing list