Read data stored in the cronus database.
Usage
read(x, ...)
# S4 method for Quickstats
read(x, variable, predictors = NULL)
# S4 method for Cropmaps
read(x, name)
# S4 method for Parameters
read(x, name)
# S4 method for Daymet
read(x, variable)
# S4 method for Mod09ga
read(x, variable)
Arguments
- x
S4 object. A product of interest.
- ...
extra arguments.
- variable
character. The variable of interest.
- predictors
data.frame. A data frame with columns Product and Variable.
- name
character. The name of the metadata files.
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")
## Quickstats Progress
# Create the object
x <- new("Quickstats", region = region, date = date)
# Read the data
variable <- "progress"
list_progress <- read(x, variable)
## Parameters
# Create the object
x <- new("Parameters", region = region, date = date)
# Read the data
read(x, name = "default")
}