df2tex: Data Frame to TeX Tabular

Description Usage Arguments

View source: R/df2tex.R

Description

Prints a data frame as a (La)TeX tabular.

Usage

1
2
df2tex(df, file, col.names = TRUE, row.names = TRUE, header = "",
  before = NULL, after = NULL)

Arguments

df

Data frame

file

File to write the table into

col.names

Should column names be printed?

row.names

Should row names be printed?

header

Optional tabular header. If not specified, a default header of the form \tabular{r...r} is used with as many columns as there are columns in the data frame.

before

Optional vector of lines to write after header and (possible) column names but before data. Mostly useful to add custom column names, or an \hline.

after

Optional vector of lines to write before \end{tabular}


hkauhanen/hipster documentation built on July 4, 2020, 11:25 p.m.