Learn R Programming

reportRx (version 1.0)

covsum: Get covariate summary dataframe

Description

Returns a dataframe corresponding to a descriptive table

Usage

covsum(data, covs, maincov = NULL, numobs = NULL, markup = T, sanitize = T, nicenames = T)

Arguments

data
dataframe containing data
covs
character vector with the names of columns to include in table
maincov
covariate to stratify table by
numobs
named list overriding the number of people you expect to have the covariate
markup
boolean indicating if you want latex markup
sanitize
boolean indicating if you want to sanitize all strings to not break LaTeX
nicenames
booling indicating if you want to replace . and _ in strings with a space