Learn R Programming

pandocfilters (version 0.1-6)

Table: Table

Description

Constructs a block object of type "Table".

Usage

Table(
  rows,
  col_names = NULL,
  aligns = NULL,
  col_width = NULL,
  caption = list()
)

Arguments

rows

an object of class "matrix", "data.frame", "table" or a list of lists of pandoc objects of type "TableCell"

col_names

a list of objects of type "TableCell"

aligns

a character vector of alignments, possible values are “l” for left, “r” for right, “c” for center and “d” for default.

col_width

a numeric vector

caption

a inline object or a list of inline objects giving the caption

Details

Table, with caption, column alignments (required), relative column widths (0 = default), column headers (each a list of blocks), and rows (each a list of lists of blocks)