View source: R/helper_text_skim_with_labels_and_levels.R
skim_with_labels_and_levels | R Documentation |
This function takes a data.frame
and returns a skim summary with variable names,
labels, and levels for categorical variables. It is a wrapper around the skimr::skim()
function.
skim_with_labels_and_levels(data)
data |
A |
A data.frame
with variable names, labels, levels, and a skim summary
Other text_helpers:
df_to_string()
,
vector_list_to_string()
# First add some labels to 'mtcars':
mtcars$car <- rownames(mtcars)
mtcars$car <- factor(mtcars$car, levels = rownames(mtcars))
attr(mtcars$car, "label") <- "Name of the car"
# Then skim the data:
mtcars |>
skim_with_labels_and_levels()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.