powered by
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
renderBasicTable( matrix = NULL, stylePrefix = NULL, columnNamesAsHeader = FALSE, rowNamesAsHeader = FALSE, columnAlignment = "right" )
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.
A basic table rendered as a HTML widget.
# NOT RUN { renderBasicTable(matrix(c(1:12), nrow=3)) # }
Run the code above in your browser using DataLab