Read STICS model outputs for sole or mixed crops.

read_output(dirpath = getwd(), mixed = NULL, name = NULL)

Arguments

dirpath

Directory path

mixed

(optional) Is the simulation on mixed species (boolean)

name

Plant name for the output. Especially usefull for mixed crops. If NULL, the function tries to read it using read_usm()

Value

A data.frame (sole crop) or a list of two data.frames (mixed crops) of the STICS outputs.

Details

If mixed is not specified (or equal to NULL), the function try to read the number of species from the input files.

Note

The STICS outputs are controled from the var.mod file. set_out_var() can be used to set the output variables.

See also

Examples

if (FALSE) { library(sticRs) Output= read_output() }