cross_table: Version of 'gmodels::CrossTable' with better defaults

cross_tableR Documentation

Version of gmodels::CrossTable with better defaults

Description

Defaults to not including any of the proportions that clutter the table.

Usage

cross_table(
  x,
  y,
  digits = 3,
  max.width = 5,
  expected = FALSE,
  prop.r = FALSE,
  prop.c = FALSE,
  prop.t = FALSE,
  prop.chisq = FALSE,
  chisq = FALSE,
  fisher = FALSE,
  mcnemar = FALSE,
  resid = FALSE,
  sresid = FALSE,
  asresid = FALSE,
  missing.include = FALSE,
  format = c("SAS", "SPSS"),
  dnn = NULL,
  ...
)

Details

Copied from the gmodels source on 01/21/2017.

Use ?gmodels::CrossTable to see arguments and examples.

Examples

cross_table(mtcars$cyl, mtcars$gear)

wepelham3/sack2 documentation built on Aug. 5, 2023, 5:53 a.m.