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

Description Usage Arguments Details Value See Also Examples

Description

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

Usage

1
eval_output(dirpath = getwd(), obs_name = NULL, mixed = NULL)

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)

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

1
2
3
4
5
## Not run: 
library(SticsOnR)
Table_compare= eval_output()

## End(Not run)

SticsRPacks/SticsOnR documentation built on July 6, 2019, 9:35 a.m.