View source: R/extract_data_apsimx.R
extract_values_apsimx | R Documentation |
Extract initial values from a parameter path
extract_values_apsimx(file, src.dir, parm.path)
file |
file name to be run (the extension .apsimx is optional) |
src.dir |
directory containing the .apsimx file to be run (defaults to the current directory) |
parm.path |
parameter path either use inspect_apsimx or see example below |
a vector with extracted parameter values from an APSIM file.
## Find examples
extd.dir <- system.file("extdata", package = "apsimx")
## Extract parameter path
pp <- inspect_apsimx("Maize.apsimx", src.dir = extd.dir,
node = "Manager", parm = list("Fert", 1))
ppa <- paste0(pp, ".Amount")
## Extract value
extract_values_apsimx("Maize.apsimx", src.dir = extd.dir, parm.path = ppa)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.