crop: Set crop paramters

cropR Documentation

Set crop paramters

Description

Set crop parameters to a ecocrop model.

Usage

crop(x) <- value

Arguments

x

EcocropModel object

value

matrix with crop parameters. Each column represents parameters for an environmental variable, and must have a name. The matrix must have four rows that represent the x-coordinates for a table-mountain shaped relative response function (y-coordinates: 0,1,1,0; see the plot in the examples). The only exception is the "duration" parameter with has a single value (in the first row). For functions where only "one tail" is relevant, the values for the other tail can be set to very high or low values, including Inf and -Inf. See ecocropPars for default parameters for many species.

Value

none

Examples

x <- ecocropPars("potato")
potato <- x$parameters

m <- ecocrop()
crop(m) <- potato

plot(m)

Recocrop documentation built on Oct. 24, 2022, 5:10 p.m.