cell: Construct a table cell from an object

View source: R/compile-cell.R

cellR Documentation

Construct a table cell from an object

Description

Any R object can be used as a cell value. Attributes are used to store additional classs of that cell attached to the object. This is a helper function to attach all the additional attributes to the provided object

Usage

cell(x, ...)

Arguments

x

R object to attach attributes too

...

Each additional argument becomes an attribute for the object

Details

Certain attributes have special meaning: - 'names' is appended to the front of a value, e.g. "P=" for a p-value. - 'sep' is used to join values, e.g. ", " for a list of values. - 'class' denotes special rendering handling, e.g. generally passed as CSS class to HTML5 - 'reference' a list of reference symbols to put inside the cell - 'row' and 'col' should refer to the row / column if key generation is needed - 'subrow' and 'subcol' further delinate the key value of a cell for key generation

Value

The modified R object


tangram documentation built on Feb. 16, 2023, 5:59 p.m.