dem_table: Make base demographics table

View source: R/dem_table.R

dem_tableR Documentation

Make base demographics table

Description

Generates demographics table from given data.frame.

Usage

dem_table(dat, expr, make_pretty = FALSE)

Arguments

dat

Data.frame containing classification and demographic variables.

expr

Expression of how to populate table. cls ~ . or cls ~ var1 + var2

make_pretty

Prettify the LHS and RHS names?

Details

dem_table Generate demographics table.

Generates demographic table from given expression.

Value

Data.frame of demographic table.

See Also

make_dem_table

Examples


data(iris)
dem_table(iris, Species ~ .)
dem_table(iris, Species ~ Sepal.Width + Sepal.Length)


sean-cho/demtables documentation built on March 15, 2023, 7:59 p.m.