report.propTable {reporter} | R Documentation |
The function print the contingency table with columns sums or rowsums.
report.propTable(x, y, margin = NULL, digits = 1)
x |
First categorical variable. |
y |
Second categorical variable. |
margin |
Index to generate margin for. If |
Marjan Cugmas
report.propTable(x = mtcars$gear, y = mtcars$carb, margin = 1, digits = 2)