View source: R/apsim_classic.R
read_apsim | R Documentation |
read ‘output’ databases created by APSIM runs (.out and .sim). One file at a time.
read_apsim(
file = "",
src.dir = ".",
value = c("report", "all"),
date.format = "%d/%m/%Y",
silent = FALSE
)
file |
file name |
src.dir |
source directory where file is located |
value |
either ‘report’ (data.frame), ‘user-defined’ or ‘all’ (list) |
date.format |
format for adding ‘Date’ column |
silent |
whether to issue warnings or suppress them |
Read APSIM generated .out files
This function returns a data frame with APSIM output or a list if value equals ‘all’
read_apsim_all
## Not run:
extd.dir <- system.file("extdata", package = "apsimx")
maize.out <- read_apsim("Maize", src.dir = extd.dir, value = "report")
millet.out <- read_apsim("Millet", src.dir = extd.dir, value = "report")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.