metadata | R Documentation |
metadata
downloads classification and crop class metadata from the cropscape website.
metadata(state, year, https = TRUE, ssl.verifypeer = TRUE)
state |
A numeric fips code, a state's two letter abbreviation, or a state name. |
year |
A numeric year. |
https |
Legacy https, all traffic uses https, if you need http provide alternative url. |
ssl.verifypeer |
An optional boolean to turn on and off ssl verfication, default is on. |
Cropscape provides classification and crop class metadata on the Cropland Data Layer. This function fetches this data through scraping cropscape html.
The metadata for the state identified by the state argument. If no match can be made, the program returns NA. The metadata is returned as a list with two elements, overall and class specific metrics, each in dataframes.
Jonathan Lisic, jlisic@gmail.com
## Not run:
metadata("ia", 2007)
metadata('North Carolina',2008)
metadata(44,2017)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.