Description Usage Arguments Examples
Print table to latex
1 2 3 4 5 6 7 | print_table(df = data.frame(), envir = c("longtable", "tabular",
"tabularx"), col_format = "", rowcolors = NULL,
rowcol_head = "lightgray", hline = TRUE,
format_head = "\\centering\\bf", replace_na = function(x)
ifelse(is.na(x), "", x), replace_nl = function(x) gsub("\n| ",
"\\\\newline ", x), header = colnames(df), grid_col = "lightgray",
vspace_before = "-.8em", vspace_after = "-.8em")
|
df |
data.frame |
envir |
string. table environment to be used in latex |
col_format |
string. column format |
rowcolors |
NULL or list with fields |
rowcol_head |
string. row color of the columns header |
hline |
logical. activate horizontal lines |
format_head |
string. header columns format |
replace_na |
function or NULL. replace NA |
replace_nl |
function or NULL. replace newlines |
header |
character vector or NULL. columns header text |
grid_col |
string. color of the grid |
vspace_before |
string or NULL. height of vertical space before the table |
vspace_after |
string or NULL. height of vertical space after the table |
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.