extract_labels | R Documentation |
Extract variable labels from data and return a data frame with labels
extract_labels(data, sep = "_")
data |
the data frame to extract labels from |
sep |
character used to separate multiple labels, defaults to "_" |
All variable names will be returned, even those with no labels. If the label attribute has length greater than one the values will be concatenated and returned as a single string separated by sep
# Set a few variable labels for ctDNA
data("ctDNA")
ctDNA <- ctDNA |> set_var_labels(
ctdna_status="detectable ctDNA",
cohort="A cohort label")
# Extract labels
extract_labels(ctDNA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.