aqs_counties_by_state {RAQSAPI} | R Documentation |
aqs_counties_by_state
Description
Returns a table of all counties in within the stateFIPS provided.
Usage
aqs_counties_by_state(stateFIPS, return_header = FALSE)
Arguments
stateFIPS |
a R character object which represents the 2 digit state
FIPS code (with leading zeros) for the state being
requested. @seealso |
return_header |
If FALSE (default) only returns data requested. If TRUE returns a AQSAPI_v2 object which is a two item list that contains header information returned from the API server mostly used for debugging purposes in addition to the data requested. |
Value
a tibble or an AQS_Data Mart_APIv2 S3 object of all counties in the requested state.
Examples
# Returns a tibble all the counties
# in North Carolina the county FIPS codes (county codes) for
# each.
## Not run: aqs_counties_by_state(stateFIPS = "37")
[Package RAQSAPI version 2.0.5 Index]