Skip to contents

This function loads data from EMBRACE-I and EMBRACE-II, processes them, and combines them into a single dataframe.

Usage

load_combined_embrace(
  file_path_i = here::here("data_raw/embrace_I"),
  file_path_ii = here::here("data_raw/embrace_II/emii.xlsx"),
  file_path_eqd2 = here::here("data_raw/embrace_II/emii_eqd2.xlsx"),
  mapping_file = here::here("data_raw/mapping_table/mapping_table.xlsx"),
  return_common_columns = T
)

Arguments

file_path_i

The path to the EMBRACE-I data root folder.

file_path_ii

The path to the EMBRACE-II Excel file.

file_path_eqd2

The path to the EMBRACE-II EQD2 Excel file.

return_common_columns

If TRUE, return only matched columns

Value

A tibble containing the cleaned and combined data from both studies.