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,
footnotes = NULL,
align = NULL,
format_na_str = NULL
)
non_ref_rcell(
x,
is_ref,
format = NULL,
colspan = 1L,
label = NULL,
indent_mod = NULL,
refval = NULL,
align = "center",
format_na_str = NULL
)
Arguments
- x
(
ANY
)
cell value.- format
(
string
orfunction
)
the format label (string) orformatters
function to apply tox
. Seeformatters::list_valid_format_labels()
for currently supported format labels.- colspan
(
integer(1)
)
column span value.- label
(
string
orNULL
)
label. 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.- footnotes
(
list
orNULL
)
referential footnote messages for the cell.- align
(
string
orNULL
)
alignment the value should be rendered with. Defaults to"center"
ifNULL
is used. Seeformatters::list_valid_aligns()
for all currently supported alignments.- format_na_str
(
string
)
string which should be displayed when formatted if this cell's value(s) are allNA
.- is_ref
(
flag
)
whether function is being used in the reference column (i.e..in_ref_col
should be passed to this argument).- refval
(
ANY
)
value to use when in the reference column. Defaults toNULL
.
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 should not be relied upon beyond calling accessors for the class.