Learn R Programming

pivottabler (version 0.4.0)

PivotLatexRenderer: A class that renders a pivot table in Latex.

Description

The PivotLatexRenderer class creates a Latex representation of a pivot table.

Usage

PivotLatexRenderer

Arguments

Value

Object of R6Class with properties and methods that render to Latex.

Format

R6Class object.

Fields

parentPivot

Owning pivot table.

Methods

Documentation

For more complete explanations and examples please see the extensive vignettes supplied with this package.

new(...)

Create a new pivot table renderer, specifying the field value documented above.

clearIsRenderedFlags()

Clear the IsRendered flags that exist on the PivotDataGroup class.

resetVisibleRange()

Clears the visible range that has been set, so the next call to getTableLatex() will render the whole table.

setVisibleRange(fromRow=NULL, toRow=NULL, fromColumn=NULL, toColumn=NULL)

Specifies a subset of the pivot table to be rendered, e.g. for use when a pivot table will not fit into a single A4 page.

clearIsRenderedFlags()

getTableLatex = function(caption=NULL, label=NULL, boldHeadings=FALSE, italicHeadings=FALSE))

Get a Latex representation of the pivot table, specifying the caption to appear above the table, the label to use when referring to the table elsewhere in the document and how headings should be styled.

Examples

Run this code
# NOT RUN {
# This class should only be created by the pivot table.
# It is not intended to be created outside of the pivot table.
# }

Run the code above in your browser using DataLab