remove: Add or remove parameters and predictors

removeParametersR Documentation

Add or remove parameters and predictors

Description

Remove parameters or predictors from an EcoCrop model

Usage

removeParameters(x, name)
removePredictor(x, name)

Arguments

x

EcocropModel object

name

character. name of the variable to remove; or "ALL" to remove all parameters or predictors.

Value

Nothing is returned

Examples

pot <- ecocropPars("potato")
m <- ecocrop(pot)

crop(m) <- cbind(clay = c(0, 10, 30, 40))
removeParameters(m, "ph")

dynamicPredictors(m) <- cbind(tavg=rep(15,12), prec=rep(100, 12))
removePredictor(m, "tavg")

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