report.propTable: Create a contingency table

Description Usage Arguments Author(s) Examples

View source: R/report.propTable.R

Description

The function print the contingency table with columns sums or rowsums.

Usage

1
report.propTable(x, y, margin = NULL, digits = 1)

Arguments

x

First categorical variable.

y

Second categorical variable.

margin

Index to generate margin for. If NULL, then simple probabilities (non-conditional) are reported.

Author(s)

Marjan Cugmas

Examples

1
report.propTable(x = mtcars$gear, y = mtcars$carb, margin = 1, digits = 2)

reporter documentation built on Sept. 19, 2020, 3:01 p.m.