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 reads all .out files in a directory.

Usage

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

Arguments

filenames

names of files to be read

src.dir

source directory where files are located

value

either ‘report’ or ‘all’ (only ‘report’ implemented at the moment)

date.format

format for adding ‘Date’ column

simplify

whether to return a single data frame or a list.

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 March 18, 2022, 7:52 p.m.