This function retrieves the label of a heading from a labels file.
Examples
if (FALSE) { # \dontrun{
# Example usage:
LABELS <- data.frame(
Variable = c("USUBJID", "AVAL"),
Label = c("Unique Subject Identifier", "Analysis Value"),
Dataset = c("ADPC", "ADPC")
)
get_label(LABELS, "USUBJID", "ADPC") # Returns "Unique Subject Identifier"
get_label(LABELS, "AGE", "ADPC") # Returns "No label available"
} # }