Learn R Programming

tables (version 0.3)

latex.tabular: Display a tabular object using LaTeX.

Description

This is similar to print.tabular, but it inserts the code to display the table in a LaTeX tabular environment.

Usage

## S3 method for class 'tabular':
latex(object, file="", justification="c", ...)

Arguments

Value

Returns x invisibly, and prints the LaTeX script to the console.

See Also

print.tabular, latex

Examples

Run this code
tab <- tabular( (Species + 1) ~ (n=1) + Format(digits=2)*
         (Sepal.Length + Sepal.Width)*(mean + sd), data=iris )
latex(tab)

Run the code above in your browser using DataLab