summarise_allcbundle: Summarise categorical variables in bundles

summarise_allcbundleR Documentation

Summarise categorical variables in bundles

Description

This function summarises all the categorical variables in the data set and create bundles based on the category labels

Usage

summarise_allcbundle(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. The summaries are aggregated into single tables based on the category labels.

Examples


data(edar_survey)
## help(edar_survey)
tab =  summarise_allcbundle(edar_survey)
tab
tab$Table[[4]]
tab$tabp[[4]]
tab$tabl[[4]]
tab = summarise_allcbundle( edar_survey, group="gender")
tab
tab$Table[[5]]
tab$tabp[[5]]
tab$tabl[[5]]

# or with pipe
# edar_survey  %>% summarise_allcbundle(., group="gender")


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