Skip to contents

Update one or more slots of a ProgressModel object.

Usage

update(object, ...)

# S4 method for ProgressModel
update(object, ...)

# S4 method for ProgressModelList
update(object, ...)

Arguments

object

an object of class ProgressModel or ProgressModelList. whose slots are to be updated.

...

extra arguments.

Value

an object of class ProgressModel or ProgressModelList.

Examples

if (FALSE) {
# Create a Region object
library(cronus)
region <- Region(name = "nebraska", type = "us state",
                 div = c(country = "United States", state = "Nebraska"))

object <- new("ProgressCLM", region = region, crop = "Corn", model = "A")
object <- update(object, region = region, crop = "Soybeans", model = "B")
}