This function returns the list of labels identifying specific variable types
in a safeframe
object.
Value
The function returns a named list
where names indicate which column
they correspond to, and values indicate the relevant labels.
Examples
## make a safeframe
x <- make_safeframe(cars, speed = "Miles per hour")
## check non-null labels
labels(x)
#> $speed
#> [1] "Miles per hour"
#>
## get a list of all labels, including NULL ones
labels(x, TRUE)
#> $speed
#> [1] "Miles per hour"
#>
#> $dist
#> NULL
#>