It is a wrapper for running APSIM and evaluating different parameters values
sens_apsim(
file,
src.dir = ".",
crop.file,
parm.paths,
parm.vector.index,
xml.parm,
grid,
summary = c("mean", "max", "var", "sd", "none"),
root,
verbose = TRUE,
cores = 1L,
save,
...
)
object of class ‘sens_apsim’, but really just a list with results from the evaluations.
file name to be run (with extension .apsim)
directory containing the .apsim file to be run (defaults to the current directory)
name of auxiliary xml file where parameters are stored. If this is missing, it is assumed that the parameters to be edited are in the main simulation file.
absolute or relative paths of the coefficients to be evaluated.
It is recommended that you use inspect_apsim
for this
Index to evaluate a specific element of a parameter vector. At the moment it is possible to only edit one element at a time. This is because there is a conflict when generating multiple elements in the candidate vector for the same parameter.
TRUE or FALSE for each parameter. Indicating whether it is part of an xml file. Its length should be equal to the length or ‘parm.paths’.
grid of parameter values for the evaluation. It can be a data.frame.
function name to use to summarize the output to be a sinlge row (default is the mean).
root argument for edit_apsim
whether to print progress in percent and elapsed time.
number of cores to use for parallel evaluation
whether to save intermediate results. By default they will be saved as a ‘csv’ file using the name of the apsim file. This will replace ‘apsim’ with ‘csv’. It is also possible to provide the file name here (for example: ‘Some_results.csv’).
additional arguments (none used at the moment).
# \donttest{
## See the vignette for examples
# }
Run the code above in your browser using DataLab