get_labs_df | R Documentation |
Get labels of variables
get_labs_df(.data)
.data |
tibble or data.frame |
tibble with variables and its labels (as list-column)
# make labels for iris dataset, labels will be colnames
# with dot replaced for whitespace
iris_with_labs <- as.data.frame(mapply(function(x, y) {
attr(x, "label") <- y
return(x)
}, iris, gsub("\\.", " ", colnames(iris)), SIMPLIFY = FALSE))
get_labs_df(iris_with_labs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.