to_kable.Rd
Tabular summaries of characteristics (i.e., table one) are generally presented in a table with columns that describe the overall sample and subsets of the sample designated by a grouping variable. In addition, it is expected that variable labels and units will be indicated, and footnotes will be placed at the bottom of the table with full descriptions of variables and abbreviations that appear in the table. This function automates these tasks.
to_kable(object, use_groups = TRUE, indent_groups = FALSE, footnote_notation = "symbol", include_1st_header = TRUE, include_2nd_header = TRUE, include_3rd_header = TRUE, bold_headers = TRUE, ...)
object | a tibble_one object |
---|---|
use_groups | T/F, should rows be grouped? |
indent_groups | T/F, should entries within groups be indented?
(this has no effect if |
footnote_notation | character value indicating footnote symbols to
use in tables. Eligible values are |
include_1st_header | T/F, should bottom header be included? |
include_2nd_header | T/F, should middle header be included? |
include_3rd_header | T/F, should top header be included? |
bold_headers | T/F, should header labels be printed in bold? |
... | Arguments passed on to
|
A character vector of the table source code, i.e., code that can be presented in 'R Markdown' documents.