mainfun: Main function

Description Usage Arguments Details Value

View source: R/2-main.R

Description

This is the main function of the model that calls all other functions (meteorology, shade tree, soil) and computes the Coffea simulation. This function is called by DynACof() under the hood, and users should always call DynACof() instead of this function because it imports the files, format the simulation inputs, checks for errors, takes care automatically of the computation distribution along nodes, and format the outputs.

Usage

1
mainfun(cy, Direction, Meteo, Parameters)

Arguments

cy

The growing cycle (crop rotation)

Direction

Simulation directives as a data.frame

Meteo

Meteorology data.frame

Parameters

Simulation parameters

Details

The Direction data.frame has to contain at least one column named Cycle that denotes the crop rotation, Plot_Age, an integer for the plot age, Plot_Age_num for the plot age as a continuous variable (see example).

Value

The simulation output as a data.frame.


VEZY/DynACof documentation built on Feb. 3, 2021, 8:52 p.m.