make_dem_table: Make pretty demographics table

View source: R/make_dem_table.R

make_dem_tableR Documentation

Make pretty demographics table

Description

Generates display ready demographics table.

Usage

make_dem_table(dat, expr, tblname = NA, type = "html", ...)

Arguments

dat

Data.frame containing classification and demographic variables.

expr

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

tblname

Name of the table.

type

Type of table to make. Currently only html is supported.

...

Passed onto htmlTable

Details

make_dem_table Generate display ready demographics table.

Generates display ready demographic table from given expression.

Value

HTML ready table.

See Also

dem_table view_dem_table

Examples


data(iris)
iristbl <- make_dem_table(iris, Species ~ ., 'Iris')
view_dem_table(iristbl)


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