Description Usage Arguments Value Examples
This is used as a utility function by other functions, but can also be used to explore expected results before pulling real data.
1 2 3 4 5 6 7 8 | get_state_item_count(
key,
year,
data_item,
fips = "all",
domain = "TOTAL",
source = "CENSUS"
)
|
key |
Your NASS API key. |
year |
Must be a census year (e.g. 2012, 2017). |
data_item |
The long description of the desired series. Use search_data_items function to find one. |
fips |
Must be 'all' or a 2-digit state fips. |
domain |
A modifier on data_item, some characterstic (e.g. size categories of operations), use 'all' to get all. |
source |
Must be 'CENSUS' or 'SURVEY'. |
The count of values.
1 2 3 4 5 | key <- Sys.getenv('NASS_KEY')
get_state_item_count(key=key, year=2017,
data_item='CORN, GRAIN - ACRES HARVESTED', fips='all')
get_state_item_count(key=key, year=2017,
data_item='CORN, GRAIN - ACRES HARVESTED', fips='08')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.