Load a PicnicHealth Data Set
load_data_set.Rd
Load a PicnicHealth data set into memory. A PicnicHealth data set is a directory of CSV files.
Arguments
- data_set_path
The full directory path to where the data set is located.
- dict_spec
A boolean indicator indicating whether the data dictionary should be used to format columns. If set to
TRUE
, data_dictionary directory must be present in same directory as the data input directory. The default isFALSE
.
Value
A named list of tibbles containing every table in the data set.
Each element's name corresponds to the table it represents.
Details
The input directory, i.e. data_set_path
, is the full directory path to
a PicnicHealth data set that that has been unzipped/uncompressed and
contains multiple sub-directories (i.e., clinical, source, vocabulary) each
of which contain CSV files.
If dict_spec = TRUE
, the data_dictionary/
directory is present in same
directory as the data_set_path
input directory and contains data_dictionary
files provided by PicnicHealth, i.e. an unzipped/uncompressed directory that
contains multiple sub-directories (i.e., clinical, source, vocabulary) each
of which contain CSV files.
See also
filter_data_set()
to filter a data set using a specified list of patients.load_table()
to load an individual PicnicHealth table and optionally specify data type conversions.
Examples
if (FALSE) { # \dontrun{
# Load Data to data set object:
picnic_health_data <- load_data_set("path/to/data")
# Load Data to Global Environment
list2env(load_data_set("path/to/data"), envir = .GlobalEnv)
} # }