summarise_allc | R Documentation |
This function summarises all the categorical variables in the data set.
summarise_allc(df, group = NULL)
df |
data frame |
group |
string vector with the names of the grouping variables (can be more than one). The summary will be computed by groups. Default |
It returns a tibble data frame with summaries for all categorical variables.
data(starwars, package='dplyr') summarise_allc(starwars, group=NULL) summarise_allc(starwars, group="gender") summarise_allc(starwars, group=c("gender", "eye_color")) # or with pipe # starwars %>% summarise_allc(., group=c("gender", "eye_color"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.