Learn R Programming

table1 (version 1.5.1)

render.strat: 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)

Value

A character, which may contain HTML markup.

Arguments

strata

A named list of data.frames.

...

Additional arguments.

transpose

Logical indicating whether on not the table is transposed.

Examples

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

Run the code above in your browser using DataLab