make_crosstab: Make a formatted flat contingency table.

Description Usage Arguments

View source: R/make_crosstab.R

Description

Creates a formatted flat contingency table with class ftable.

Usage

1
2
3
make_crosstab(tbl, output = crosstab_output(tbl),
  col_level_threshold = 8, row_vars = NULL, col_vars = NULL,
  samp_size_warn = F, ...)

Arguments

tbl

A data.table returned by summarize_data.

output

A named character vector denoting the output.

col_level_threshold

Maximum amount of group variable levels in the column position.

row_vars

Group variables to be represented in the row position.

col_vars

Group variables to be represented in the column position.

samp_size_warn

logical. Attach asterisk to value if sample size is less than 30.

...

Optional formatting arguments. See format_values.


Westat-Transportation/summarizeNHTS documentation built on May 17, 2020, 8:57 p.m.