Learn R Programming

gtsummary (version 0.1.0)

indent_key.fmt_table1: Makes index of factors requiring indent from fmt_table1 objects in Rmarkdown

Description

Makes index of factors requiring indent from fmt_table1 objects in Rmarkdown

Usage

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

Arguments

x

fmt_table1 object

...

further arguments passed to or from other methods

Examples

Run this code
# NOT RUN {
  t1 <-
    trial %>%
    fmt_table1() %>%
    bold_labels()

  knitr::kable(as_tibble(t1),
    row.names = FALSE,
    caption = "Table 1: Summary of Patient and Clinical Variables"
  ) %>%
    kableExtra::kable_styling(
      bootstrap_options = c("condensed"),
      font_size = 11,
      full_width = F
    ) %>%
    kableExtra::add_indent(indent_key(t1))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab