Returns the subsetting expression associated with a SplitValue (or
ValueWrapper) object, or NULL for objects without one. This expression
is used internally to subset data when tabulating.
Usage
value_expr(obj)
# S4 method for class 'ValueWrapper'
value_expr(obj)
# S4 method for class 'ANY'
value_expr(obj)Arguments
- obj
(
ValueWrapperorANY)
a split value object, typically aSplitValueconstructed bySplitValue(). Any other object returnsNULL.
Examples
sv <- SplitValue("A", sub_expr = expression(ARM == "A"))
value_expr(sv)
#> expression(ARM == "A")
value_expr("not a SplitValue") # NULL
#> NULL