Access or set child-specific extra arguments on a split value
Source:R/tree_accessors.R
splv_extra.Rdsplv_extra retrieves the named list of child-specific extra arguments
stored on a SplitValue object. These arguments are forwarded to the
analysis or content function only for the facet represented by that
particular split value, making them distinct from split_exargs() which
applies to all children of a split.
Usage
splv_extra(obj)
# S4 method for class 'SplitValue'
splv_extra(obj)
splv_extra(obj) <- value
# S4 method for class 'SplitValue'
splv_extra(obj) <- valueArguments
- obj
(
SplitValue)
a split value object, typically produced bySplitValue()or as a result of a splitting operation.- value
(
list)
named list of extra arguments to store onobj.
Value
splv_extrareturns the currentlistof child-specific extra args.splv_extra<-returnsobjwith the extra arguments replaced.
See also
split_exargs() for split-level (all-children) extra arguments.
Examples
sv <- SplitValue("A", extr = list(my_arg = 1))
splv_extra(sv)
#> $my_arg
#> [1] 1
#>
splv_extra(sv) <- list(my_arg = 99)
splv_extra(sv)
#> $my_arg
#> [1] 99
#>