View source: R/get_airnow_conditions.R
get_airnow_conditions | R Documentation |
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
.
get_airnow_conditions( zip = NULL, latitude = NULL, longitude = NULL, distance = NULL, clean_names = TRUE, api_key = get_airnow_token() )
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 |
A data frame with current air quality conditions
## Not run: get_airnow_conditions(zip = "90210") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.