This function loads EMBRACE-II data and processes it to create a clean dataset
ready for final analysis. It applies all necessary transformations and filters.
Usage
emii_get_clean_data(minimal = TRUE, save_excel = FALSE, excel_path = NULL)
Arguments
- minimal
Logical; if TRUE, returns only essential columns, if FALSE returns all columns
- save_excel
Logical; if TRUE, saves the data frame as an Excel file
- excel_path
Character; path where to save the Excel file (default: NULL)
Value
A tibble containing the cleaned EMBRACE-II data
Examples
if (FALSE) { # \dontrun{
clean_data <- emii_get_clean_data()
clean_data <- emii_get_clean_data(save_excel = TRUE)
clean_data <- emii_get_clean_data(save_excel = TRUE, excel_path = "my_data.xlsx")
} # }