Colleagues, 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 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) www.PLessThan.com
Dennis Fisher wrote:> Colleagues, > > 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.http://cran.r-project.org/web/packages/SASxport/index.html HTH, Tobias