Table: Table

View source: R/pandocfilters.R

TableR Documentation

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)


pandocfilters documentation built on Aug. 12, 2022, 1:05 a.m.