modify_header.fmt_uni_regression: Modifies header rows for existing 'fmt_uni_regression'...

Description Usage Arguments Examples

Description

If the top row of a header column is blank, you may experience printing issues when using knitr::kable

Usage

1
2
3
## S3 method for class 'fmt_uni_regression'
modify_header(x, label = NULL, N = NULL,
  est = NULL, ci = NULL, pvalue = NULL, ...)

Arguments

x

fmt_uni_regression object

label

string vector including text to appear above the label column

N

string vector including text to appear above the N column

est

string vector including text to appear above the estimate/coefficient column

ci

string vector including text to appear above the confidence interval column

pvalue

string vector including text to appear above the p-value column

...

further arguments passed to or from other methods

Examples

1
2
3
4
5
6
7
8
fmt_uni_regression(
  trial,
  method = "glm",
  y = "response",
  method.args = list(family = binomial),
  exponentiate = TRUE
) %>%
  modify_header(label = "Characteristic")

ddsjoberg/gtsummary-v0.1 documentation built on June 4, 2019, 7:48 a.m.