Learn R Programming

apsimx (version 2.2)

read_apsim: Read APSIM generated .out files

Description

read ‘output’ databases created by APSIM runs (.out and .sim). One file at a time.

Usage

read_apsim(
  file = "",
  src.dir = ".",
  value = c("report", "all"),
  date.format = "%d/%m/%Y"
)

Arguments

file

file name

src.dir

source directory where file is located

value

either ‘report’ (data.frame) or ‘all’ (list)

date.format

format for adding ‘Date’ column

Value

This function returns a data frame with APSIM output or a list if value equals ‘all’

Details

Read APSIM generated .out files

Examples

Run this code
# 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")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab