This internal function generates samples based on the specified distributions and probabilities. It is not intended for direct usage by end-users.
buildsim.sample(
the.formula,
the.variable,
n,
num.experiments,
value.split = ",",
symbol.open.paren = "(",
symbol.close.paren = ")"
)A data frame with sampled values based on the given formula.
A character string specifying the sampling formula, e.g., "sample(('Red', 'Green', 'Blue'), (0.5, 0.3, 0.2))".
A character string naming the variable in the generated data.
An integer specifying the number of data points to generate for each experiment.
An integer specifying the number of experiments to simulate.
A character used to split the values in the sample.
A character specifying the opening parenthesis.
A character specifying the closing parenthesis.