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.

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

## Arguments

matrix Tabular data to render. Text prefix for CSS style declarations. Include column names in output (if FALSE, the first row from the matrix is used as the column headings). Include row names in output. 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))