Learn R Programming

gtsummary (version 0.1.0)

indent_key.fmt_uni_regression: Makes index of factor variables requiring indent from fmt_regression objects in Rmarkdown

Description

Makes index of factor variables requiring indent from fmt_regression objects in Rmarkdown

Usage

# S3 method for fmt_uni_regression
indent_key(x, ...)

Arguments

x

fmt_regression object

...

further arguments passed to or from other methods

Examples

Run this code
# NOT RUN {
  library(lme4)
  uni_mod <- fmt_uni_regression(trial,
    method = "glm",
    y = "response",
    method.args = list(family = binomial),
    exponentiate = TRUE
  )

  # In RMarkdown, knitting to HTML:
  kable(as_tibble(uni_mod),
    row.names = FALSE,
    caption = "Model Summary"
  ) %>%
    kableExtra::add_indent(indent_key(uni_mod))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab