create_knitr_table | R Documentation |
Create an output-independent, well formatted kable table
create_knitr_table(
data_table,
digits = NULL,
caption = NA,
col.names = NULL,
col_width = NULL,
width_unit = "cm",
col_align = NULL,
border_right_cols = NULL,
bold_cols = NULL,
bootstrap_options = c("striped", "hover", "condensed"),
latex_options = NULL,
output_format = NULL,
keep_pdf = FALSE,
latex_header_includes = c("\\usepackage[magyar]{babel}",
"\\usepackage[utf8]{inputenc}")
)
data_table |
data.frame, tibble, named matrix or a knitr_kable object. |
digits |
Number of digits to display in the case of numeric variables. |
caption |
A table caption, defaults to empty |
col.names |
The col.names parameter of the kable table, if |
col_width |
Defaults to |
width_unit |
Defaults to |
col_align |
Defaults to |
border_right_cols |
Defaults to |
bold_cols |
Defaults to |
bootstrap_options |
Defaults to |
latex_options |
Defaults to |
output_format |
Defaults to |
keep_pdf |
Defaults to |
latex_header_includes |
Currently defaults to |
foo = data.frame (
observation = c("indicator1", "indicator2", "indicator3"),
indicator_1 = c(100,105,95),
indicator_2 = c(102,104,76)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.