table_1: Create a Dataset Summary Table (I.E. Table 1)

Description Usage Arguments Details Value Examples

View source: R/table_1.R

Description

This helps creates demographics or summary table for a dataset, the eponymous "table 1". Given a data set a key for columns, describe the differences across the provided factor variables between the levels of key.

Usage

1
2
3
4
5
6
7
table_1(.data, key, .vars = vars(everything()), ...)

table_1_dispatcher(.data, var, name, key)

table_1_summarise(.data, var, name, key)

table_1_summarize(.data, var, name, key)

Arguments

.data

a dataset

key

the comparison variable, such as case/control.

.vars

a lazy list of variables to include in the description.

...

passed on to other methods.

var

Variable identifier, used to dispatch

name

name of the variable

Details

table_1_summarise and table_1_dispatcher dispatch on the data type of the variable identified by var in .data

Value

The result is a table which includes:

Examples

1
2
table_1(iris, Species)
table_1(CO2, Plant)

cursory documentation built on Aug. 22, 2019, 9:03 a.m.