SplitValue: Construct a 'SplitValue' object

View source: R/00tabletrees.R

SplitValueR Documentation

Construct a SplitValue object

Description

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 to val.

sub_expr

(expression or NULL)
optional subsetting expression. When NULL (default) the expression is derived automatically from val during tabulation.

Value

A SplitValue object.

See Also

splv_extra(), value_expr()

Examples

sv <- SplitValue("A", sub_expr = expression(ARM == "A"))
value_expr(sv)
splv_extra(sv)


rtables documentation built on Oct. 1, 2026, 9:07 a.m.

Related to SplitValue in rtables...