freqTab: Create a frequency table

freqTabR Documentation

Create a frequency table

Description

The function creates a frequency table with percentages for the selected categorical variable.

Usage

freqTab(x, dec = 2, cum = TRUE, ...)

Arguments

x

Vector with the values of a categorical variable.

dec

Number of decimal places for percentages.

cum

whether to calculate cumulative frequencies and percentages (default TRUE).

...

Arguments passed to function table.

Value

A frequency table (as a dataframe).

Author(s)

Aleš Žiberna

Examples

freqTab(mtcars[,2], dec = 1)

multiUS documentation built on July 26, 2023, 3:02 p.m.

Related to freqTab in multiUS...