Apply function to scenario data
Usage
apply_to_scenario_data(scen, func, ..., classes = NULL, as_list = TRUE)
Arguments
- scen
scenario object
- func
function to apply to every object of class classes
in the scenario's model data
- classes
character vector of class names to apply the function to
- return_list
logical, if TRUE, return a list of results, otherwise
return a vector of results