Learn R Programming

reproducer (version 0.1.6)

printXTable: printXTable

Description

print data table using xtable R package

Usage

printXTable(data, selectedColumns, tableType = "latex", alignCells, digits, caption, label, fontSize, captionPlacement = "bottom", alignHeader)

Arguments

data
Data structure including columns to be printed.
selectedColumns
Columns selected to be printed.
tableType
Type of table to produce. Possible values are "latex" or "html". Default value is "latex".
alignCells
Defines how to align data cells.
digits
Defines the number of decimal points in each column.
caption
Caption of the table.
label
Label of the table.
fontSize
Size of the font used to produce a table.
captionPlacement
The caption will be have placed at the bottom of the table if captionPlacement is "bottom" and at the top of the table if it equals "top". Default value is "bottom".
alignHeader
Defines how to align column headers of a table.

Value

A table generated on the fly on a basis of passed data (data, selectedColumns etc.).

Examples

Run this code
d <- reproducer::MadeyskiKitchenham.MetaAnalysis.PBRvsCBRorAR
reproducer::printXTable(d, '"Study"', "latex", '"cc"', 0, "C", "L", "tiny", "top", "l")

Run the code above in your browser using DataLab