qlpvt | R Documentation |
The qlpvt
function returns the Latex for a basic pivot table with
one line of R.
qlpvt(dataFrame, rows = NULL, columns = NULL, calculations = NULL, ...)
dataFrame |
The data frame containing the data to be summarised in the pivot table. |
rows |
A character vector of variable names to be plotted on the rows of the pivot table, or "=" to specify the position of the calculations. |
columns |
A character vector of variable names to be plotted on the columns of the pivot table, or "=" to specify the position of the calculations. |
calculations |
One or more summary calculations to use to calculate the values of the cells in the pivot table. |
... |
Additional arguments, currently format, formats, totals, argumentCheckMode, compatibility, caption and/or label. See the Latex output vignette for a description of caption and label. |
Latex.
qlpvt(bhmtrains, "TOC", "TrainCategory", "n()")
qlpvt(bhmtrains, "TOC", "TrainCategory", "n()",
caption="my caption", label="mylabel")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.