renderBasicTable | R Documentation |
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"
)
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. |
A basic table rendered as a HTML widget.
renderBasicTable(matrix(c(1:12), nrow=3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.