Get all cultivar parameters in a model

get_cultivar(l, alias = TRUE)

Arguments

l

The list of apsimx file

alias

Whether to export alias

Value

A data frame for all cultivar parameters

Examples

wheat <- read_apsimx(system.file("Wheat.json", package = "rapsimng")) get_cultivar(wheat)
#> # A tibble: 30 x 3 #> name parameter value #> <chr> <chr> <chr> #> 1 Cul1 [Phenology].MinimumLeafNumber.FixedValue 1 #> 2 Cul1 [Phenology].VrnSensitivity.FixedValue 0 #> 3 Cul1 [Phenology].PpSensitivity.FixedValue 2 #> 4 Cul1 [Phenology].HeadEmergencePpSensitivity.FixedValue 0 #> 5 Cul1 [Phenology].Phyllochron.BasePhyllochron.FixedValue 100 #> 6 Cul6 [Phenology].MinimumLeafNumber.FixedValue 1 #> 7 Cul6 [Phenology].VrnSensitivity.FixedValue 0 #> 8 Cul6 [Phenology].PpSensitivity.FixedValue 2 #> 9 Cul6 [Phenology].HeadEmergencePpSensitivity.FixedValue 0 #> 10 Cul6 [Phenology].Phyllochron.BasePhyllochron.FixedValue 100 #> # … with 20 more rows
get_cultivar(wheat, alias = FALSE)
#> # A tibble: 25 x 3 #> name parameter value #> <chr> <chr> <chr> #> 1 Cul1 [Phenology].MinimumLeafNumber.FixedValue 1 #> 2 Cul1 [Phenology].VrnSensitivity.FixedValue 0 #> 3 Cul1 [Phenology].PpSensitivity.FixedValue 2 #> 4 Cul1 [Phenology].HeadEmergencePpSensitivity.FixedValue 0 #> 5 Cul1 [Phenology].Phyllochron.BasePhyllochron.FixedValue 100 #> 6 Cul2 [Phenology].MinimumLeafNumber.FixedValue 1 #> 7 Cul2 [Phenology].VrnSensitivity.FixedValue 0 #> 8 Cul2 [Phenology].PpSensitivity.FixedValue 2 #> 9 Cul2 [Phenology].HeadEmergencePpSensitivity.FixedValue 0 #> 10 Cul2 [Phenology].Phyllochron.BasePhyllochron.FixedValue 100 #> # … with 15 more rows