summarise_allc: Summarise the categorical variables of the data set

summarise_allcR Documentation

Summarise the categorical variables of the data set

Description

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

Usage

summarise_allc(df, group = NULL)

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.

Value

It returns a tibble data frame with summaries for all categorical variables.

Examples

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"))


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