freq_table_with_percent: freq_table_with_percent

Description Usage Arguments Value Examples

Description

Generates a frequency table with the percentage of each group.

Usage

1
freq_table_with_percent(df, cat_variable)

Arguments

df

A data frame.

cat_variable

The quoted column name that contains the categorical variable.

Value

A table in which the rownames are the groups of the categorical variable. The first column if the count of the respective group and the second column is the percentage of the the group.

Examples

1
freq_table_with_percent(df=data,cat_variable="eye_color")

vinisousa04/AdvancedDataAnalysis documentation built on May 14, 2019, 6:02 p.m.