Export general data.frame object as XPT file

A data.frame object can be exported to a SAS XPT file. Additionally, labels can be provided with the addColLabels input argument.

IQRoutputXPT(data, filename = NULL, addColLabels = NULL)



data.frame to export as XPT


Filename of the XPT file to create (not more than 8 characters without extension)


List with named elements. Names are column names and the value of an element is the label. If defining addColLabels for columns that are already handled automatically, the provided labels will overwrite the automatic ones. Example: addColLabels <- list(IXGDF="Other label",NEWCCOL="Label for NEWCOL")

See also