Description Usage Arguments Value Author(s) See Also Examples
This function will calculate counts and column proportions for a one-way or two-way table.
1 2 3 4 5 |
x |
The variable for which to report counts and proportions. |
formula |
A formula with the row variable on the left hand side
and the column variable(s) on the right hand side. Think of this as
|
data |
A |
subset |
An optional vector specifying a subset of observations to be used for the calculations. |
na.action |
|
overall |
If |
overall.label |
If |
For single-variable, or univariate, tables, the result is a numeric matrix with rows representing the levels of the variable and two columns. The first column contains the number and the second column contains the percentage.
For two-variable tables, the result is a list with each element being a matrix having column 1 be the counts and column 2 be the percentages.
Stephen Weigand Weigand.Stephen@mayo.edu
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.