aqs_counties_by_state: aqs_counties_by_state

Description Usage Arguments Value Examples

View source: R/RAQSAPIlistfunctions.R

Description

\lifecycle

stable Returns a table of all counties in within the stateFIPS provided.

Usage

1
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 aqs_states() for the list of available FIPS codes.

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

1
2
3
4
          #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")

RAQSAPI documentation built on Jan. 29, 2022, 1:08 a.m.