Read apsimx database in db file format

read_report(file, report)

Arguments

file

the file path to apsimx or db file

report

the report name

Value

a data.frame for a report

Examples

file <- system.file("extdata/wheat.apsimx", package = "rapsimng")
read_report(file, "HarvestReport")
#> # A tibble: 12 × 15
#>    CheckpointID SimulationID Experiment FolderName V     Cv        N     Zone 
#>           <int>        <int> <chr>      <chr>      <chr> <chr>     <chr> <chr>
#>  1            1            1 Experiment Folder     1     Axe       0     Field
#>  2            1            4 Experiment Folder     2     Axe       0     Field
#>  3            1            2 Experiment Folder     1     Calingiri 0     Field
#>  4            1            6 Experiment Folder     1     Axe       200   Field
#>  5            1            3 Experiment Folder     1     Bolac     0     Field
#>  6            1            5 Experiment Folder     2     Calingiri 0     Field
#>  7            1            7 Experiment Folder     2     Bolac     0     Field
#>  8            1            9 Experiment Folder     1     Bolac     200   Field
#>  9            1            8 Experiment Folder     2     Bolac     200   Field
#> 10            1           10 Experiment Folder     2     Axe       200   Field
#> 11            1           12 Experiment Folder     1     Calingiri 200   Field
#> 12            1           11 Experiment Folder     2     Calingiri 200   Field
#> # … with 7 more variables: Clock.Today <chr>, Wheat.Phenology.Stage <dbl>,
#> #   Wheat.Phenology.Zadok.Stage <dbl>, Wheat.Phenology.FloweringDAS <dbl>,
#> #   Wheat.Phenology.FlagLeafDAS <dbl>,
#> #   Wheat.Phenology.TerminalSpikeletDAS <dbl>, Name <chr>