renderBasicTable: Output a table into a package vignette.

View source: R/basicTable.R

renderBasicTableR Documentation

Output a table into a package vignette.

Description

renderBasicTable is utility function that renders a basic table into a package vignette. This function is primarily intended for internal use by the pivottabler package.

Usage

renderBasicTable(
  matrix = NULL,
  stylePrefix = NULL,
  columnNamesAsHeader = FALSE,
  rowNamesAsHeader = FALSE,
  columnAlignment = "right"
)

Arguments

matrix

Tabular data to render.

stylePrefix

Text prefix for CSS style declarations.

columnNamesAsHeader

Include column names in output (if FALSE, the first row from the matrix is used as the column headings).

rowNamesAsHeader

Include row names in output.

columnAlignment

A character vector specifying the horizontal alignment of each column.

Value

A basic table rendered as a HTML widget.

Examples

renderBasicTable(matrix(c(1:12), nrow=3))

pivottabler documentation built on Oct. 1, 2023, 5:07 p.m.