compose_bundles: Compose ModelBundles and transition components

View source: R/compose.R

compose_bundlesR Documentation

Compose ModelBundles and transition components

Description

These helpers make it easy to layer policy/intervention logic on top of baseline natural history dynamics without rewriting the baseline bundle.

Usage

compose_bundles(
  baseline,
  policy = NULL,
  merge = c("policy_wins", "baseline_wins", "error_on_conflict")
)

Arguments

baseline

Baseline model bundle list.

policy

Optional policy/intervention bundle list overriding selected components.

merge

Patch conflict strategy for transition updates: "policy_wins", "baseline_wins", or "error_on_conflict".


fluxCore documentation built on Sept. 22, 2026, 5:07 p.m.