Forecast Portal rodent populations using the data and models in a portalcasting directory. portalcast wraps around cast to allow multiple runs of model - dataset - species combinations. It returns and saves out the model combinations table with fit success added as a column.cast runs a single forecast of a single model on one species of one dataset. make_model_combinations translates model controls into a data.frame of model, dataset, and species columns, with a row for each combination.
Usage
portalcast(
main = ".",
models = prefab_models(),
datasets = prefab_datasets(),
species = prefab_species(main = main)
)
cast(main = ".", dataset, species, model)
make_model_combinations(
main = ".",
models = prefab_models(),
datasets = prefab_datasets(),
species = prefab_species(main = main)
)Arguments
- main
charactervalue of the name of the main component of the directory tree.- models, model
charactervector of name(s) of model(s) to include in the forecast. Incast,modelcan only be length-one.- datasets, dataset
charactervector of datasets to be forecast. Incast,datasetcan only be length-one.- species
charactervector of species to be forecast. Incast,speciescan only be length-one. Seerodent_species.
Value
portalcast: data.frame of model combinations with a logical column added for fit success, invisible-ly. cast: list of model outputs from process_model_output. make_model_combinations: data.frame of the model combinations.
See also
Core forecasting functions:
ensemble,
evaluate forecasts,
process forecast output