Skip to contents

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().

Examples

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

# }