render.strat: Render strata labels for default table1 output.

View source: R/table1.R

render.stratR Documentation

Render strata labels for default table1 output.

Description

Called from table1 to render the strata labels for display in the table. This is the default function, but it can be overriden by a user-supplied function.

Usage

render.strat(strata, ..., transpose = F)

Arguments

strata

A named list of data.frames.

...

Additional arguments.

transpose

Logical indicating whether on not the table is transposed.

Value

A character, which may contain HTML markup.

Examples

dat <- expand.grid(id=1:10, sex=c("Male", "Female"), treat=c("Treated", "Placebo"))
strata <- split(dat, dat$treat)
render.strat(strata)

benjaminrich/table1 documentation built on June 10, 2025, 10:43 p.m.