x_tab: Creates input table of DSSAT CSM model parameters

Description Usage Arguments Details Value

View source: R/x_tab.R

Description

Creates input table of variables to be passed to CSM xfile writing function, joining them on to master input table

Usage

1
x_tab(fields)

Arguments

fields

data.frame/data.table with minimum variable set (see Details).

Details

Function sets up a table containing all variables necessary to create a DSSAT X file. The minimum variables needed are:

The last three sets of variables usually only have about 4-5 values, the rest are NA. 10 columns are provided for the rare soil profile that has this many layers. These values are obtained by running read_sol_hor or read_sol_prof functions. Default values are provided for any variable beyond those required that are not specified. Note that the default crop is maize, so if you don't specify a crop type in inputs that is what the model will run. Additional variables specified in fields will over-ride default values. Variable names must be exact or function will fail. Other default settings worth knowing about:

Value

Table of management variables joined to master table defining fields


ldemaz/rcropmod documentation built on Feb. 29, 2020, 10:17 p.m.