Function for making Table One.
Usage
tableone(data, vars, sty = "t1", excl = FALSE)
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
a string naming the style of the table.
- excl
a boolean argument whether to exclude missing values. Default
is false.
Value
A results object containing:
results$todo | | | | | a html |
results$tablestyle1 | | | | | a preformatted |
results$tablestyle2 | | | | | a html |
results$tablestyle3 | | | | | a html |
results$tablestyle4 | | | | | a preformatted |
Examples
# \donttest{
# data('histopathology')
# dat <- as.data.frame(histopathology)
# ClinicoPathDescriptives::tableone(
# data = dat,
# vars = vars(Sex, PreinvasiveComponent, LVI, PNI, Grade, Age),
# sty = "t3",
# excl = TRUE)
# }