Congregate raster data into a data frame.
Arguments
- x
S4 object. A product of interest.
- ...
extra arguments.
- variable
character. A function to compute the variable of interest.
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")
}