Learn R Programming

compareGroups (version 0.1-4)

export2latex: Exporting descriptives table to Latex format

Description

This function takes the result of createTable and exports the tables to LaTeX format.

Usage

export2latex(x, file,...)

Arguments

x
an object of class 'createTable'
file
file where table in LaTeX format will be written. Note that the the folder and the basename of the file must be written but not the extension (.tex). Also, another file with the extension '_appendix' is written with the available data table.
...
other arguments passed to write.table.

See Also

createTable, export2csv

Examples

Run this code
data(myData)
ans<-compareGroups(y~.,myData)
export2latex(createTable(ans),file="c:/example/tables/table1")

Run the code above in your browser using DataLab