This function loads data from two different sources for the Embrace I study,
processes them, and joins them by the `embrace_id` column.
Usage
load_embrace_i(
file_path = here::here("data_raw/embrace_I"),
add_new_columns = T,
mapping_file = here::here("data_raw/mapping_table/mapping_table.xlsx"),
filter_cohort = T
)
Arguments
- file_path
The path to the directory containing the primary data files.
- add_new_columns
If TRUE, calculate and add new columns
- mapping_file
Path to the mapping table file
- filter_cohort
Filter 1318
Value
A tibble containing the cleaned and joined data.
Examples
if (FALSE) { # \dontrun{
df <- load_embrace_i()
} # }