freqTab | R Documentation |
The function creates a frequency table with percentages for the selected categorical variable.
freqTab(x, dec = 2, cum = TRUE, ...)
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 |
A frequency table (as a dataframe).
Aleš Žiberna
freqTab(mtcars[,2], dec = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.