col_stats | R Documentation |
Apply a counting summary function like dplyr::n_distinct()
or count_na()
to every column of a data frame and return the results along with a
percentage of that value.
col_stats(data, fun, print = TRUE)
glimpse_fun(data, fun, print = TRUE)
data |
A data frame to glimpse. |
fun |
A function to map to each column. |
print |
logical; Should all columns be printed as rows? |
A tibble with a row for every column with the count and proportion.
col_stats(dplyr::storms, dplyr::n_distinct)
col_stats(dplyr::storms, campfin::count_na)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.