print_table: Print table to latex

Description Usage Arguments Examples

Description

Print table to latex

Usage

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")

Arguments

df

data.frame

envir

string. table environment to be used in latex

col_format

string. column format

rowcolors

NULL or list with fields begin (integer. starting row including header) even (string. even rows color) and odd (string. odd rows color)

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

Examples

1
2

adrtod/bastiR documentation built on May 10, 2019, 5:59 a.m.