Validate dry biomass partitioning coefficients

Usage

valid_dbp(x, tol = 0.001)

Arguments

x
Vector of length equal to 25 containing the dry biomass partitioning coefficients for the 6 phenological stages as for example produced by phenoParms.
tol
Numerical tolerance passed to the all.equal function.

Value

It will return the vector of coefficients unchanged if no errors are detected.

Description

It attempts to check the requirements of the dry biomass partitioning coefficients.

Examples

xx <- as.vector(unlist(phenoParms())[7:31]) valid_dbp(xx)
[1] 0.3700 0.3300 0.3000 -0.0008 0.8500 0.1400 0.0100 -0.0005 0.6300 [10] 0.0100 0.0100 0.3500 0.6300 0.0100 0.0100 0.3500 0.6300 0.0100 [19] 0.0100 0.3500 0.6300 0.0100 0.0100 0.3500 0.0000

See also

BioGro

Author

Fernando E. Miguez