ltx_export: Export data frame to LaTeX file

Description Usage Arguments Examples

Description

Export data frame to LaTeX file

Usage

1
2
3
4
ltx_export(df, file, eol = c(`1` = "\\midrule"),
  footer = NA_character_, col.types = paste0(rep("l", ncol(df)),
  collapse = ""), full.size = F, demo = F, outer.rules = TRUE,
  filter.columns = TRUE, split.column = NULL)

Arguments

df

table data

file

file name

eol

named vector of end-of-line strings

footer

string to be added after the bottom rule

col.types

string of column types

full.size

use tabularx if TRUE, else tabular

demo

create demo latex document (ready-to-compile), disables full.size export

outer.rules

add top and bottom rule automatically (otherwise: specify in eol parameter)

filter.columns

remove column names starting with a dot

split.column

create multiple tables based on the distinct values of this column, NA entries correspond to global headers/footers.

Examples

1
2
3
4
## Not run: 
ltx.write(mtcars, "mtcars.tex")

## End(Not run)

miho87/ltxtab documentation built on May 26, 2019, 3:33 p.m.