Last chance! 50% off unlimited learning
Sale ends in
Get NASS Area given a set of parameters.
nassqs_acres(..., area = c("AREA", "AREA PLANTED", "AREA BEARING",
"AREA BEARING & NON-BEARING", "AREA GROWN", "AREA HARVESTED",
"AREA IRRIGATED", "AREA NON-BEARING", "AREA PLANTED",
"AREA PLANTED, NET"))
either a named list of parameters or a series of parameters to form the query
the type of area to return. Default is all types.
a data.frame of acres data
# NOT RUN {
# Get Area bearing for Apples in Washington, 2012.
params <- list(
commodity_desc = "APPLES",
year = "2012",
state_name = "WASHINGTON",
agg_level_desc = "STATE"
)
area <- nassqs_area(params, area = "AREA BEARING")
head(area)
# }
Run the code above in your browser using DataLab