Skip to contents

This function adds columns indicating whether a patient had a locoregional event and whether the event was locoregional alone. It returns a tibble with the created columns and all columns used for verification.

Usage

add_locoregional_event_with_verification(.data, save_excel = FALSE)

Arguments

.data

The input dataframe containing patient event data

save_excel

Logical indicating whether to save results as Excel file (default: FALSE)

Value

A tibble with the locoregional event variables and relevant columns

Examples

if (FALSE) { # \dontrun{
data <- tibble(
  embrace_id = c("A1", "A2"),
  event_localfailure = c(TRUE, FALSE),
  event_nodalcontrol_incl_pao = c(FALSE, TRUE),
  event_systemic_excl_pao = c(FALSE, TRUE)
)
result <- add_locoregional_event_with_verification(data)
result <- add_locoregional_event_with_verification(data, save_excel = TRUE)
} # }