| Title: | Decision-Oriented Analysis Core for APSIM Next Generation Outputs |
|---|---|
| Description: | Provides a low-level interface for analysing Agricultural Production Systems sIMulator ('APSIM') Next Generation simulation outputs to support structured decision-making workflows. |
| Authors: | Bangyou Zheng [aut, cre] |
| Maintainer: | Bangyou Zheng <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.2 |
| Built: | 2026-11-21 11:33:22 UTC |
| Source: | https://github.com/cran/rapsimng.decide.core |
Converts a rapsimng_decide_document object into a character vector that can
be written to disk. A document prefix is written first when present, then
each non-NULL section body separated by blank lines.
document_lines(document)document_lines(document)
document |
A report object with class |
A character vector containing the ordered document lines.
Read APSIMX output
read_output(apsimx_file, report = "HarvestReport", years = NULL)read_output(apsimx_file, report = "HarvestReport", years = NULL)
apsimx_file |
The path to the APSIMX output file (.apsimx) |
report |
The name of the report to read from the APSIMX output ( default: "HarvestReport") |
years |
Optional numeric vector of years to filter the output by (e.g., 1996:2025) |
A data frame containing the APSIMX output data
apsimx_file <- system.file( "example", "cultivar.apsimx", package = "rapsimng.decide.core" ) output <- read_output(apsimx_file, years = 2010:2011) head(output)apsimx_file <- system.file( "example", "cultivar.apsimx", package = "rapsimng.decide.core" ) output <- read_output(apsimx_file, years = 2010:2011) head(output)
Serialises a rapsimng_decide_document with document_lines() and writes the
resulting text file to path.
write_document(document, path, overwrite = FALSE)write_document(document, path, overwrite = FALSE)
document |
A report object with class |
path |
A single output file path. |
overwrite |
Logical scalar indicating whether an existing file may be replaced. |
Invisibly returns path.