printXTable: printXTable

View source: R/reproducer.R

printXTableR Documentation

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.).

Author(s)

Lech Madeyski

Examples

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

reproducer documentation built on Oct. 18, 2023, 5:10 p.m.