tableone: Table One

View source: R/tableone.h.R

tableoneR Documentation

Table One

Description

Function for making Table One.

Usage

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$todo a html
results$tablestyle1 a preformatted
results$tablestyle2 a html
results$tablestyle3 a html
results$tablestyle4 a preformatted

Examples

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

## End(Not run)

sbalci/ClinicoPathLinuxDescriptives documentation built on July 21, 2023, 11:54 a.m.