Skip to contents

Congregate raster data into a data frame.

Usage

congregate(x, ...)

# S4 method for Cropmaps
congregate(x, variable)

Arguments

x

S4 object. A product of interest.

...

extra arguments.

variable

character. A function to compute the variable of interest.

Value

data.frame. A data frame with the congregated data.

Examples

if (FALSE) {
# Define required variables
region <- Region(name = "nebraska", type = "us state",
                 div = c(country = "United States", state = "Nebraska"))
date <- date_seq("2002-01-01", "2002-12-31")

## Cropmaps CDL

# Create the object
x <- new("Cropmaps", region = region, date = date)

# congregate
a <- congregate(x, "cdl_recoded")
}