Description Usage Arguments Value Examples
Set a parameter with a new value
1 | set_parameter_value(l, parameter, value)
|
l |
the list of apsimx file |
parameter |
the name of parameter with APSIM NG specification |
value |
the new value |
A list with replaced value
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | wheat <- read_apsimx(system.file("Wheat.json", package = "rapsimng"))
new_wheat <- set_parameter_value(wheat,
"[Structure].BranchingRate.PotentialBranchingRate.Reproductive.Zero.FixedValue",
1)
new_wheat2 <- search_path(new_wheat,
"[Structure].BranchingRate.PotentialBranchingRate.Reproductive.Zero")
new_wheat2$node$FixedValue
new_wheat <- set_parameter_value(
wheat,
"[Structure].HeightModel.WaterStress.XYPairs.Y",
"0.1,1.1")
new_wheat2 <- search_path(new_wheat,
"[Structure].HeightModel.WaterStress.XYPairs")
new_wheat2$node$Y
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.