powered by
The function creates a frequency table with percentages for the selected categorical variable.
freqTab(x, dec = 2, cum = TRUE, ...)
A frequency table (as a dataframe).
Vector with the values of a categorical variable.
Number of decimal places for percentages.
whether to calculate cumulative frequencies and percentages (default TRUE).
TRUE
Arguments passed to function table.
table
Aleš Žiberna
freqTab(mtcars[,2], dec = 1)
Run the code above in your browser using DataLab