Function for making Table One.

tableone(data, vars, sty = "t1", excl = TRUE)

Arguments

data

The data as a data frame.

vars

a string naming the variables from data that contains the values used for the Table One.

sty

.

excl

.

Value

A results object containing:

results$todoa html
results$tablestyle1a preformatted
results$tablestyle2a html
results$tablestyle3a html
results$tablestyle4a preformatted

Examples

if (FALSE) { data('histopathology') dat <- as.data.frame(histopathology) ClinicoPath::tableone( data = dat, vars = vars(Sex, PreinvasiveComponent, LVI, PNI, Grade, Age), sty = "t3", excl = TRUE) }