model_combine: Combine different (sub-)models

View source: R/model-combine.R

model_combineR Documentation

Combine different (sub-)models

Description

Combine different (sub-)models.

Usage

model_combine(...)

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.

Value

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

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


# 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)




barrks documentation built on April 3, 2025, 9:47 p.m.