import_sdtm: Import an SDTM or ADaM file or directory of files

Description Usage Arguments Details Value Functions

View source: R/import_sdtm.R

Description

Import an SDTM or ADaM file or directory of files

Usage

1
2
3
4
5
6
7
import_sdtm(path, extension_choice = c(".sas7bdat", ".xpt"),
  ignore_case = TRUE, ...)

import_sdtm_dir(path, extension_choice = c(".sas7bdat", ".xpt"),
  ignore_case = TRUE, ...)

import_sdtm_file(path, return_type = c("data.frame", "list"), ...)

Arguments

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 extension_choice will be used.

ignore_case

Passed to list.files when loading a directory.

...

Arguments passed to rio::import

return_type

When loading a single file, what type of output should be provided?

Details

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.

Value

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.

Functions


billdenney/Rsdtm documentation built on Aug. 14, 2018, 4:31 a.m.