powered by
SpendingFamily
An R6 class generator. Use $new() to create a SpendingFamily object.
$new()
members
List of SpendingSpec objects.
SpendingSpec
SpendingFamily$new()
SpendingFamily$expand()
SpendingFamily$clone()
new()
Create a new spending family from one or more SpendingSpec.
SpendingFamily$new(...)
...
SpendingSpec objects.
expand()
Expand all members to spending settings.
clone()
The objects of this class are cloneable with this method.
SpendingFamily$clone(deep = FALSE)
deep
Whether to make a deep clone.
An R6 class representing a set of spending function specifications. Each family member is a SpendingSpec.
fam <- SpendingFamily$new( SpendingSpec$new(gsDesign::sfHSD, par = tune_fixed(-4)), SpendingSpec$new(gsDesign::sfLDOF, par = tune_fixed(0)) ) fam$expand()
Run the code above in your browser using DataLab