comparison_table: Compares a variable across a group, both visually and with an...

Description Usage Arguments

View source: R/comparison_table.R

Description

Compares a variable across a group, both visually and with an appropriate statistical test.

Usage

1
comparison_table(.data, ..., type = NULL, na.rm = FALSE, top = 0)

Arguments

...

The variables to compare, plus any relevant filters contained within 'filters()'. Currently supports one or two variables.

type

character. "Continuous" if 'variable' is continuous data (like age), or "categorical" / "discrete" if 'variable' is categorical data (like hometown). This can be automatically inferred by whether the variable is numeric or not.

na.rm

logical. Whether or not to remove NAs from the variables being considered.

top

numeric. See documentation for 'tab'.

data

data frame. The data to test.


peterhurford/surveytools2 documentation built on Feb. 18, 2021, 9:13 p.m.