#' Get labels from a dataset
#'
#' @param .data A dataset.
#' @return The labels of a dataset.
#' @examples
#' labels(mtcars)
labels <- function(.data) {
.data %>%
purrr::map_dfc(attr, "label") %>%
t() %>%
as.data.frame() %>%
tibble::rownames_to_column("name") %>%
dplyr::rename(`label` = 1)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.