indent_key.fmt_table1: Makes index of factors requiring indent from 'fmt_table1'...

Description Usage Arguments Examples

Description

Makes index of factors requiring indent from fmt_table1 objects in Rmarkdown

Usage

1
2
## S3 method for class 'fmt_table1'
indent_key(x, ...)

Arguments

x

fmt_table1 object

...

further arguments passed to or from other methods

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
  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))

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