Read APSIMX output
read_output(apsimx_file, report = "HarvestReport", years = NULL)A data frame containing the APSIMX output data
apsimx_file <- system.file(
"example", "cultivar.apsimx",
package = "rapsimng.decide"
)
output <- read_output(apsimx_file, years = 2010:2011)
head(output)
#> # A tibble: 6 × 23
#> CheckpointID SimulationID Experiment Cultivar SowingDate Fertilisation Zone
#> <int> <int> <chr> <chr> <chr> <chr> <chr>
#> 1 1 5 Field spring mi… 30-apr 400 Field
#> 2 1 5 Field spring mi… 30-apr 400 Field
#> 3 1 3 Field spring mid 30-apr 400 Field
#> 4 1 3 Field spring mid 30-apr 400 Field
#> 5 1 4 Field spring mid 24-apr 400 Field
#> 6 1 4 Field spring mid 24-apr 400 Field
#> # ℹ 16 more variables: Clock.Today <date>, Wheat.SowingDate <chr>,
#> # Wheat.SowingData.Cultivar <chr>, Wheat.Phenology.EmergenceDAS <dbl>,
#> # Wheat.Phenology.TerminalSpikeletDAS <dbl>,
#> # Wheat.Phenology.FlagLeafDAS <dbl>, Wheat.Phenology.HeadingDAS <dbl>,
#> # Wheat.Phenology.FloweringDAS <dbl>, Wheat.Phenology.MaturityDAS <dbl>,
#> # Yield <dbl>, Wheat.AboveGround.Wt <dbl>, Wheat.Grain.FrostHeatYield <dbl>,
#> # Name <chr>, FolderName <chr>, SowingDOY <dbl>, Year <dbl>