tolatex: Generate Latex Code

Description Usage Arguments Value Note Author(s) References Examples

Description

It links to the ‘xtable’ function for generating the latex code.

Usage

1

Arguments

x

is the object to be passed into latex code, usually a table object.

title

A vector with a caption to be pasted into the code.

Value

A latex code of the object x.

Note

It relies massively on the capabilities of ‘xtable’.

Author(s)

Daniel Marcelino

References

David B. Dahl (2012) xtable: Export tables to LaTeX or HTML.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(cgreene76)

tab <- detail(cgreene76, basic = TRUE)

tolatex(tab)

# Everything together 

cap <- "Presidential Election, Brazil (2006)"

tolatex(detail(cgreene76, basic = TRUE), cap)

SciencePo documentation built on May 2, 2019, 5:53 p.m.