Learn R Programming

barrks (version 1.1.1)

model_combine: Combine different (sub-)models

Description

Combine different (sub-)models.

Usage

model_combine(...)

Value

A phenology model. Can be passed to phenology().

Arguments

...

Phenology models, model names or lists with the keys model and submodels. In the last case, only the submodels specified are used (one of 'onset', 'diapause', 'mortality' or 'development') of the respective model. If multiple models are supplied for the same submodel, the last one overwrites all others.

See Also

  • model(), phenology()

  • Customize (sub-)models: model.bso.customize, model.phenips.customize, model.rity.customize, model.chapy.customize, model.joensson.customize, model.lange.customize, model.phenips_clim.customize

  • Use (sub-)models: model.bso.apply, model.phenips.apply, model.rity.apply, model.chapy.apply, model.joensson.apply, model.lange.apply, model.phenips_clim.apply

Examples

Run this code
# \donttest{
# combine PHENIPS with the diapause submodel of PHENIPS-Clim
m <- model_combine('phenips',
                   list(model = 'phenips-clim', submodels = 'diapause'))

# calculate phenology
p <- phenology(m, barrks_data(), .quiet = TRUE)

# plot calculated generations
gens <- get_generations_rst(p)
terra::plot(gens)
# }


Run the code above in your browser using DataLab