summarise_alln | R Documentation |
This function summarises all the numerical variables in the data set.
summarise_alln(df, group = NULL, weight = NULL, spread = F, digits = 4)
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 |
weight |
string vector with the name of the column in the data set containing the weights. Default |
spread |
boolean, if |
digits |
integer, number of digiits to return in the summaries (defualt 4) |
It returns a tibble data frame with summaries for all numerical variables
data(starwars, package='dplyr') summarise_alln(starwars, group=NULL, weight=NULL, spread=FALSE) summarise_alln(starwars, group="gender", weight=NULL, spread=FALSE) summarise_alln(starwars, group="gender", weight=NULL, spread=TRUE) # or use with pipe # starwars %>% summarise_alln(., group="gender", weight=NULL, spread=T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.