eval_output: Compare STICS simulation outputs (mod_s) to observations...

View source: R/eval_output.R

eval_outputR Documentation

Compare STICS simulation outputs (mod_s) to observations (*.obs)

Description

Compare STICS simulation outputs to observations for sole or mixed crops.

Usage

eval_output(dirpath = getwd(), obs_name = NULL, mixed = NULL, verbose = FALSE)

Arguments

dirpath

Directory path

obs_name

A vector of observation file name(s). It must have the form c(Principal,Associated) for mixed crops. See details.

mixed

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

verbose

Is informations during execution needed?

Details

For mixed crops, the obs_name argument should have the principal plant observations first in the character vector, and then the associated plant. If obs_name is not provided, the function try to guess it using the built-in algorithm from read_obs(). Idem for the mixed argument. See documentation for more details.

Value

A data.frame (sole crop) or a list of two data.frames (mixed crops) with simulated and observed data. Simulated and measured data have the ⁠_sim⁠ and ⁠_meas⁠ suffix respectively.

See Also

read_output() and read_obs()

Examples

## Not run: 
library(sticRs)
Table_compare= eval_output()

## End(Not run)


VEZY/sticRs documentation built on Oct. 26, 2023, 7:37 a.m.