rtables (version 0.3.6)

rcell: Cell value constructors

Description

Construct a cell value and associate formatting, labeling, indenting, and column spanning information with it.

Usage

rcell(x, format = NULL, colspan = 1L, label = NULL, indent_mod = NULL)

non_ref_rcell( x, is_ref, format = NULL, colspan = 1L, label = NULL, indent_mod = NULL, refval = NULL )

Arguments

x

ANY. Cell value

format

if FUN does not return a formatted rcell then the format is applied

colspan

integer(1). Columnspan value.

label

character(1). Label or Null. If non-null, it will be looked at when determining row labels.

indent_mod

numeric. Modifier for the default indent position for the structure created by this function(subtable, content table, or row) and all of that structure's children. Defaults to 0, which corresponds to the unmodified default behavior.

is_ref

logical(1). Are we in the reference column (ie .in_ref_col shoul be passed to this argument)

refval

ANY. Value to use when in the reference column. Defaults to NULL

Value

An object representing the value within a single cell within a populated table. The underlying structure of this object is an implementation detail and sholud not be relied upon beyond calling accessors for the class.

Details

non_ref_rcell provides the common blank for cells in the reference column, this value otherwise, and should be passed the value of .in_ref_col when it is used.