get_airnow_conditions {airnow} | R Documentation |
Get current air quality conditions
Description
get_airnow_conditions()
retrieves the most recent air quality readings
for the given location. Locations can be specified either by ZIP code
(zip
), or by latitude
/longitude
. If no data exist for the specified
location, an optional search radius for other sites can be specified using
distance
.
Usage
get_airnow_conditions(
zip = NULL,
latitude = NULL,
longitude = NULL,
distance = NULL,
clean_names = TRUE,
api_key = get_airnow_token()
)
Arguments
zip |
ZIP code, a 5-digit numeric string (e.g., |
latitude |
Latitude in decimal degrees |
longitude |
Longitude in decimal degrees |
distance |
Optional. If no reporting area is associated with the given
|
clean_names |
Whether or not column names should be cleaned (default:
|
api_key |
AirNow API key |
Value
A data frame with current air quality conditions
Examples
## Not run:
get_airnow_conditions(zip = "90210")
## End(Not run)
[Package airnow version 0.1.0 Index]