Skip to contents

Checks whether patients have lymph nodes in specific anatomical locations, either at diagnosis, during follow-up, or at any time point.

Usage

check_nodal_location(.data, location, time_point = "any")

Arguments

.data

A data frame containing patient node data

location

Character string specifying the anatomical location to check

time_point

Character string specifying which timepoint to check: "diagnosis", "followup", or "any" (default)

Value

A tibble with patient IDs and boolean indicators for the specified location

Examples

if (FALSE) { # \dontrun{
# Check for right internal iliac nodes at any time
result <- check_nodal_location(patient_data, "R int iliac")

# Check only at diagnosis
diagnosis_nodes <- check_nodal_location(patient_data, "R int iliac", 
                                       time_point = "diagnosis")
} # }