summarise_alln: Summarise numerical variables of the data set

summarise_allnR Documentation

Summarise numerical variables of the data set

Description

This function summarises all the numerical variables in the data set.

Usage

summarise_alln(df, group = NULL, weight = NULL, spread = F, digits = 4)

Arguments

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 NULL.

weight

string vector with the name of the column in the data set containing the weights. Default NULL.

spread

boolean, if TRUE the summaries for each group are spread along the columns. Default FALSE

digits

integer, number of digiits to return in the summaries (defualt 4)

Value

It returns a tibble data frame with summaries for all numerical variables

Examples

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)

DiogoFerrari/edar documentation built on May 8, 2022, 8:26 a.m.