extract_labels: Extract the label attribute from data

View source: R/loadData.R

extract_labelsR Documentation

Extract the label attribute from data

Description

Extract the label attribute from data

Usage

extract_labels(dat)

Arguments

dat

data in the form of a list, data.frame or tibble, or a vector

Value

list of labels

Examples

a <- c(1, 2)
attr(a, "label") <- "b"
identical(extract_labels(a), list(a = attr(a, "label")))

DescrTab2 documentation built on Sept. 6, 2022, 9:05 a.m.