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

Arguments

...

either a named list of parameters or a series of parameters to form the query

area

the type of area to return. Default is all types.

Value

a data.frame of acres data

Examples

# \donttest{ # Get Area bearing for Apples in Washington, 2012. params <- list( commodity_desc = "APPLES", year = "2012", state_name = "WASHINGTON", agg_level_desc = "STATE" ) area <- nassqs_acres(params, area = "AREA BEARING")
#> Error: Please use 'nassqs_auth(key = <your api key>)' to set your api key
head(area)
#> Error in head(area): object 'area' not found
# }