Creates a SplitValue object representing a single facet value produced
by a splitting operation, optionally carrying a custom subsetting expression
and child-specific extra arguments.
Usage
SplitValue(val, extr = list(), label = val, sub_expr = NULL)Arguments
- val
(
ANY)
the raw value for this split facet.- extr
(
list)
named list of child-specific extra arguments to forward to the analysis or content function for this facet.- label
(
character(1))
display label. Defaults toval.- sub_expr
(
expressionorNULL)
optional subsetting expression. WhenNULL(default) the expression is derived automatically fromvalduring tabulation.
Examples
sv <- SplitValue("A", sub_expr = expression(ARM == "A"))
value_expr(sv)
#> expression(ARM == "A")
splv_extra(sv)
#> list()