View source: R/simulate_custom.R
| parse_inputs | R Documentation |
This function validates the provided data, model, and metric specifications, and returns corresponding generator functions for each. It ensures that all required inputs are provided and correctly configured.
parse_inputs(data_spec, metric, model)
data_spec |
A list containing two elements:
|
metric |
A character vector specifying one or more metrics to be used. Currently, only the first element is used. |
model |
A character string specifying the model to be used. |
This function calls default_data_generators(), default_model_generators(),
and default_metric_generator() to construct the appropriate functions based on
the supplied inputs.
A list containing three elements:
data_functionThe data-generating function.
model_functionThe model-generating function.
metric_functionThe metric function corresponding to the chosen metric.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.