rapsimng.decide.sowing provides functions to analyse APSIM Next Generation simulation outputs to support sowing decision under defined environments and management assumptions.
The package operates on APSIM outputs already loaded into R and focuses on transparent, reproducible evaluation of sowing window, establishment risk, and early crop development. It does not run APSIM simulations, interpret user intent, or make automatic recommendations.
Currently on Github only. Install with:
remotes::install_github('byzheng/rapsimng.decide.sowing')Farmers and advisors often ask:
What is the optimal sowing window and establishment risk for my paddock?
This package supports that question by analysing long-term APSIM simulations to describe:
Instead of returning a single “best” date, the package provides a decision landscape that highlights strengths, weaknesses, and uncertainties for each sowing option.
APSIM Next Generation outputs only
Input: a tidy data.frame of simulation results
Analysis at sowing date × environment × management level
Deterministic, reproducible (no optimisation or AI)
rapsimng)agrillm)The package expects a data.frame (or tibble) where each row represents a simulation outcome for:
Typical required variables:
The data can come from any source (e.g. rapsimng, database export, CSV), as long as structure is consistent.
The package assumes a decision context such as:
All risk definitions are explicit and stored as metadata.
Example:
Sowing in early May has high mean yield but high establishment risk in dry years.
Sowing in late May has lower yield but more stable establishment and minimal frost exposure.
This package follows three principles:
Transparency
All assumptions, thresholds, and metrics are explicit.
Reproducibility
Same input data always produces the same results.
Separation of concerns
rapsimng → APSIM interactionrapsimng.decide.* → decision analysisagrillm → intent and explanationrapsimngagrillm