Skip to contents

An S3 class that contains the necessary information to study the large-scale progress of the crops, expressed as the crop percentage that occupies each phenological stage over an area of interest.

Usage

new_Progress(x = NULL)

validate_Progress(x)

Progress(x = NULL)

new_ProgressList(x = NULL)

validate_ProgressList(x)

ProgressList(x = NULL)

# S3 method for ProgressList
[(x, i)

Arguments

x

data.frame. The object to gain the class of interest. See Details.

i

integer. The index passed in [.

Value

An object of class Progress or ProgressList.

Details

The data.frame() must include the following columns:

  • Crop (character)

  • Stage (factor)

  • Season (numeric)

  • Time (numeric)

  • Date (Date)

  • Percentage (numeric)

  • CumPercentage (numeric)

Examples

if (FALSE) {
# Simple initialization
x <- Progress()
class(x)
x <- ProgressList()
class(x)
class(x[[1]])

# 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)

# Download the data
data <- download(x, "progress", ringname)
class(data)
class(data[["Corn"]])
head(data$Corn)

# Plot the data
plot(data, crops = "Winter Wheat", year = 2021)
}