Adds columns with maximum side effect values and their corresponding timepoints
to the original data frame.
Usage
emii_add_max_morbidity(
df,
max_grade = 0,
export_to_excel = FALSE,
file_name = "max_side_effects.xlsx"
)
Arguments
- df
The original data frame containing side effect columns
- max_grade
Numeric threshold for filtering results (default: 0)
- export_to_excel
Whether to export intermediate results to Excel (default: FALSE)
- file_name
Name of the Excel file if exporting (default: "max_side_effects.xlsx")
Value
A data frame with added columns for maximum side effect values and timepoints
Examples
if (FALSE) { # \dontrun{
result <- emii_add_max_morbidity(patient_data)
} # }