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

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?

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.

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.

See also

Examples

if (FALSE) { library(sticRs) Table_compare= eval_output() }