portalcast | R Documentation |
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.
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)
)
main |
|
models , model |
|
datasets , dataset |
|
species |
|
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.
Core forecasting functions:
ensemble
,
evaluate forecasts
,
process forecast output
## Not run:
main1 <- file.path(tempdir(), "portalcast")
setup_dir(main = main1)
make_model_combinations(main = main1)
portalcast(main = main1, models = "AutoArima")
cast(main = main1, model = "AutoArima", dataset = "controls", species = "DM")
unlink(main1, recursive = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.