freqTab {multiUS} | R 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 |
... |
Arguments passed to function |
Value
A frequency table (as a dataframe).
Author(s)
Aleš Žiberna
Examples
freqTab(mtcars[,2], dec = 1)
[Package multiUS version 1.2.3 Index]