extract_labels {DescrTab2}R 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")))

[Package DescrTab2 version 2.1.16 Index]