Learn R Programming

gtsummary (version 0.1.0)

knit_print.fmt_regression: Print fmt_regression objects in Rmarkdown

Description

Print fmt_regression objects in Rmarkdown

Usage

# S3 method for fmt_regression
knit_print(x, options, ...)

Arguments

x

object of class fmt_regression object from fmt_regression function

options

Copied from the printr package....should we delete?

...

further arguments passed to kable.

Examples

Run this code
# NOT RUN {
lm(hp ~ mpg + factor(cyl), mtcars) %>%
  fmt_regression() %>%
  knit_print()
# }

Run the code above in your browser using DataLab