write_tbl_to_xpt | R Documentation |
Writes a data frame to a SAS transport file (.xpt) named like "[domain].xpt"
write_tbl_to_xpt(tbl, filename, dir = NULL, label = NULL)
tbl |
a data frame to write |
filename |
a string, the SDTM domain or supplemental domain name which will become the file name and the name attribute of the transport file, the .xpt file extension is optional |
dir |
a string, the directory to write to, default is |
label |
a string, the data set name/label for the |
Files will be written using version 5 .xpt files
nothing
tbl <- dplyr::tibble(one = as.numeric(1:3), two = letters[1:3])
path <- tempdir()
write_tbl_to_xpt(tbl, filename = "test.xpt", dir = path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.