create_options | R Documentation |
Creates random options based on the RangeScale
and Probability
attributes
of tree nodes. This function is useful for generating random scenarios for simulations
or analyses.
create_options(tree, num_options = 1, seed = NULL)
tree |
A |
num_options |
A single |
seed |
A single |
The function creates a matrix of random options based on the attributes of tree nodes.
Specifically, it leverages the RangeScale
and Probability
attributes of tree nodes
to generate random options.
A matrix
where rows represent tree leaves and columns represent
sampled options.
tree <- dexisensitivity::masc2
option <- create_options(tree, num_options=3, seed = 42)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.