Learn R Programming

basictabler (version 0.3.1)

TableCellRanges: A class that manages cell ranges (e.g. for merged cells).

Description

The TableCellRanges class contains a list of cell ranges and provides basic utility methods such as finding intersecting ranges to support the functioning of the BasicTable class.

Arguments

Value

Object of R6Class with properties and methods that help manage cell ranges.

Format

R6Class object.

Fields

parentTable

Owning table.

ranges

A list of cell ranges.

Methods

Documentation

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

new(...)

Create a new object to manage cell ranges.

addRange(rFrom, cFrom, rSpan=NULL, cSpan=NULL, rTo=NULL, cTo=NULL)

Add a cell range to the list of cell ranges.

findIntersectingRange(rFrom, cFrom, rSpan=NULL, cSpan=NULL, rTo=NULL, cTo=NULL)

Find a cell range that intersects with the specified cell range.

deleteRange(r, c)

Delete the cell range covering the specified cell.

asList()

Get a list representation of this style.

asJSON()

Get a JSON representation of this style.

Examples

Run this code
# NOT RUN {
# TableCellRanges objects are never created outside of the BasicTable class.
# For examples of working with merged cells, see the Introduction vignette.
# }

Run the code above in your browser using DataLab