import_sdtm | R Documentation |
Import an SDTM or ADaM file or directory of files
import_sdtm(
path,
extension_choice = c(".sas7bdat", ".xpt"),
ignore_case = TRUE,
auto_supp = FALSE,
auto_dtc = FALSE,
...
)
import_sdtm_dir(
path,
extension_choice = c(".sas7bdat", ".xpt"),
ignore_case = TRUE,
ignore_filename = c(),
...
)
import_sdtm_file(path, return_type = c("data.frame", "list"), ...)
path |
The path to the directory or file. |
extension_choice |
What file extension(s) should be searched for within
the directory? (If more than one file with the same extension exists, the
first extension in |
ignore_case |
Passed to |
auto_supp |
Automatically combine –SUPP data with the main SDTM domain and remove the –SUPP data from the returned list of data.frames. |
auto_dtc |
Automatically convert –DTC columns to date/times? |
... |
Arguments passed to |
ignore_filename |
A vector of filenames not to load (case sensitive, filename only excluding directory name) |
return_type |
When loading a single file, what type of output should be provided? |
It is an error to import the same filename base (filename without path or extension) more than once. That can happen by loading more than one file with the same name from different directories or multiple versions of the same file.
If a directory or a vector of files is given in path
, a list
of data.frames; the names of the list will be the uppercase basename of the
file without the extension. If a single file is given in path
, a
data.frame.
import_sdtm_dir()
: Load a directory of SDTM files.
import_sdtm_file()
: Load a single SDTM file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.