freqs: Tabulate categorical variables from data frame

Description Usage Arguments Value

Description

Tabulate categorical variables from data frame

Usage

1
freqs(column_names, data, digits = 2L)

Arguments

column_names

Character vector with names of categorical variables

data

Data frame containing categorical variables

digits

Number of decimal digits to use for "%" column

Value

A data frame with columns "variable", "category", "N", "n", "%". The "variable" column contains the column names of the categorical variables from 'data'. The "category" column contains the levels of the variables. The "N" column contains the total number of observations per variable. The "n" column contains the number of observations per category of each variable. The "%" column contains the percentage of observations that fall into a given category.


cbaumbach/manyregs documentation built on May 13, 2019, 1:48 p.m.