powered by
Helper function for working with nested statistic function results which typically don't have labels but names that we can use.
labels_or_names(x)
A character vector with the labels or names for the list elements.
character
(list) a list.
list
x <- data.frame( a = 1:10, b = rnorm(10) ) labels_or_names(x) var_labels(x) <- c(b = "Label for b", a = NA) labels_or_names(x)
Run the code above in your browser using DataLab