apsimx | R Documentation |
Run apsimx from R. It uses ‘system’ (unix) or ‘shell’ (windows) and it attempts to be platform independent.
apsimx(
file = "",
src.dir = ".",
silent = FALSE,
value = "report",
cleanup = FALSE,
simplify = TRUE,
xargs
)
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) |
silent |
whether to print messages from apsim simulation |
value |
how much output to return: |
cleanup |
logical. Whether to delete the .db file generated by APSIM-X. Default is FALSE |
simplify |
whether to return a single data frame when multiple reports are present. If FALSE it will return a list. |
xargs |
extra arguments to be passed to the APSIM-X run. Use function xargs_apsimx. |
Run an APSIM-X Simulation
A valid apsimx file can be run from within R. The main goal is to make running APSIM-X simple, especially for large scale simulations or parameter optimization
a data frame with the ‘Report’ from the APSIM-X simulation. The return value depends on the argument ‘value’ above.
## See function 'apsimx_example' and vignette 'apsimx'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.