Learn R Programming

reportRmd (version 0.1.0)

clear_labels: 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

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

Run the code above in your browser using DataLab