latex.table {componentSkeleton}R Documentation

LaTeX code for a floating table

Description

Create LaTeX code for a floating LaTeX table environment, corresponding to a \begin{table} statement. Return a character vector that contains LaTeX code lines.

Usage

latex.table(table.obj, column.alignment, caption = NULL, position = "!h", long = FALSE, use.row.names = FALSE, numberFormat = "%.2f")

Arguments

table.obj

Data frame or matrix. If column names are defined, they are used as a header line.

column.alignment

Column alignment string. Must contain as many entries as there are columns.

caption

Table caption. If NULL, no caption is inserted.

position

Table position code.

long

If TRUE, use the longtable environment that enables multi-page tables.

use.row.names

If TRUE and row names are defined in table.obj, add a column that contains row names. This column must be included in column.alignment.

numberFormat

Formatting pattern for the numeric values.

Author(s)

Kristian Ovaska (kristian.ovaska@helsinki.fi), Marko Laakso (Marko.Laakso@Helsinki.FI)


[Package componentSkeleton version 2.0.1 Index]