Description Usage Arguments Value Examples
freqTable builds an univariate or bivariate frequency table with counts and percentages at each combination of factor levels factor level and optionally shows a barplot.
1 2 3 |
x |
variable to tabulate, which can be interpreted as factor |
by |
variable for crosstabulation, also interpreted as factor |
xlabel |
Label of the variable x, to be used in figures and tables. |
bylabel |
Label of the variable by, to be used in figures and tables. |
plot |
Logical. If TRUE a barplot is printed |
horizontal |
Logical. If TRUE bars are printed horizontally |
printFreq |
Logical. If TRUE frequency values are printed in the barplot |
density |
Logical. if TRUE barplot is printed with relative frequencies |
showTable |
Logical. If TRUE frequency table is printed via pander. If FALSE frequency table is returned invisibly. |
pctBycol |
Logical. If TRUE relative frequencies in crosstabs are computed by columns else by rows |
an univariate frequency table with absolute and relative frequencies, and optionally a barplot
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.