perctable: Cross tabulation displayed as percents or proportions

Description Usage Arguments Details Value Examples

View source: R/perctable.R

Description

perctable and proptable use the cross-classifying factors to build a contingency table of the percents or proportions at each combination of factor levels.

Usage

1
2
3

Arguments

...

arguments passed directly to table(); typically one or more objects which can be interpreted as factors (including character strings), or a list (or data frame) whose components can be so interpreted.

Details

See table().

Value

a contingency table, an object of class "table", an array of percentage or proportion values. Note that unlike S the result is always an array, a 1D array if one factor is given.

Examples

1
2
# perctable() is now defunct.  Use `tally()` instead
example(tally)

ProjectMOSAIC/mosaic documentation built on Aug. 19, 2018, 9:14 a.m.