Learn R Programming

rtables (version 0.6.17)

SplitValue: 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)

Value

A SplitValue object.

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.

See Also

splv_extra(), value_expr()

Examples

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

Run the code above in your browser using DataLab