Function for making Table-1.

tableone(data, vars)

Arguments

data

the data as a data frame

vars

a string naming the variables from data that contains the values used for the Table-1

Value

A results object containing:

results$todoa html
results$text1a preformatted

Examples

if (FALSE) { ClinicoPath::tableone( data = data, vars = vars()) }