freq: Tabulate a categorical variable.

Description Usage Arguments Value

Description

Tabulate a categorical variable.

Usage

1
freq(x, label = NULL, digits = 2L)

Arguments

x

Categorical variable to tabulate

label

Label to use for categorical variable

digits

Number of decimal digits to use in "%" column

Value

A data frame with columns "variable", "category", "N", "n", "%", where "variable" is the name of the variable, "category" is the level of the variable, "N" is the total number of observations for the variable, "n" is the number of observations per category of the variables, and "%" is the percentage of observations that fall into a given category.


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