clear_labels: Clear variable labels from a data frame

View source: R/lblCode.R

clear_labelsR Documentation

Clear variable labels from a data frame

Description

This function will remove all label attributes from variables in the data.

Usage

clear_labels(data)

Arguments

data

the data frame to remove labels from

Details

To change or remove individual labels use set_labels or set_var_labels

Examples

# Set a few variable labels for ctDNA
data("ctDNA")
ctDNA <- ctDNA |> set_var_labels(
   ctdna_status="detectable ctDNA",
  cohort="A cohort label")
# Clear all variable data frames and check
clear_labels(ctDNA)

reportRmd documentation built on April 4, 2025, 2:03 a.m.