read_apsim_all: Read all APSIM generated .out files in a directory

View source: R/apsim_classic.R

read_apsim_allR Documentation

Read all APSIM generated .out files in a directory

Description

Like read_apsim, but it can read many .out files in a directory. It will read all of them unless these are filtered using a regular expression as an argument to ‘value’.

Usage

read_apsim_all(
  filenames,
  src.dir = ".",
  value = "report",
  date.format = "%d/%m/%Y",
  simplify = TRUE,
  silent = FALSE
)

Arguments

filenames

names of files to be read

src.dir

source directory where files are located

value

either ‘report’, ‘user-defined’ or ‘all’ (not implemented at the moment)

date.format

format for adding ‘Date’ column

simplify

whether to return a single data frame or a list.

silent

whether to issue warnings or suppress them

Details

Read all APSIM generated .out files in a directory

Value

returns a data frame or a list depending on the argument ‘simplify’ above.

Note

Warning: very simple function at the moment, not optimized for memory or speed.


apsimx documentation built on Sept. 11, 2024, 5:42 p.m.