Returns a dataframe or simplefeature dataframe of permitted facilities returned by the query. Uses EPA's ECHO API: https://echo.epa.gov/tools/web-services/facility-search-air#!/Facilities/get_air_rest_services_get_facility_info

echoAirGetFacilityInfo(output = "df", verbose = FALSE, ...)

Arguments

output

Character string specifying output format. output = 'df' for a dataframe or output = 'sf' for a simple features spatial dataframe. See (https://CRAN.R-project.org/package=sf) for more information about simple features.

verbose

Logical, indicating whether to provide processing and retrieval messages. Defaults to FALSE

...

Further arguments passed as query parameters in request sent to EPA ECHO's API. For more options see: https://echo.epa.gov/tools/web-services/facility-search-water#!/Facility_Information/get_air_rest_services_get_facility_info for a complete list of parameter options. Examples provided below.

Value

dataframe or sf dataframe suitable for plotting

Examples

# \donttest{ ## These examples require an internet connection to run ## Retrieve table of facilities by bounding box echoAirGetFacilityInfo(xmin = '-96.407563', ymin = '30.554395', xmax = '-96.25947', ymax = '30.751984', output = 'df')
#> # A tibble: 40 x 7 #> AIRName SourceID AIRStreet AIRCity AIRState FacLat FacLong #> <chr> <chr> <chr> <chr> <chr> <dbl> <dbl> #> 1 AGGIE CLEANERS 0600000048~ 111 COLLEGE M~ COLLEGE ~ TX 30.6 -96.3 #> 2 ALENCO, DIV OF ~ TX00000048~ 615 CARSON ST~ BRYAN TX 30.6 -96.4 #> 3 ALL SEASONS 1 H~ 0600000048~ 2501 TEXAS AV~ COLLEGE ~ TX 30.6 -96.3 #> 4 BLUEBONNET PAVI~ TX00000048~ HWY. 60, WEST~ COLLEGE ~ TX 30.6 -96.3 #> 5 BRIARCREST DRY ~ 0600000048~ 1887 BRIARCRE~ BRYAN TX 30.7 -96.3 #> 6 BRYAN CERAMICS ~ TX00000048~ 1500 INDEPEND~ BRYAN TX 30.6 -96.4 #> 7 BRYAN CLEANERS ~ 0600000048~ 1803 HOLLEMAN~ COLLEGE ~ TX 30.6 -96.3 #> 8 BRYAN HICKS GAS~ TX00000048~ 3747 OLD RELI~ BRYAN TX 30.7 -96.3 #> 9 CITGO PETROLEUM~ TX00000048~ 1714 FINFEATH~ BRYAN TX 30.7 -96.4 #> 10 CITY OF BRYAN TX00000048~ 1.5 MI W OF @~ BRYAN TX 30.6 -96.4 #> # ... with 30 more rows
## Retrieve a simple features dataframe by bounding box spatialdata <- echoAirGetFacilityInfo(xmin = '-96.407563', ymin = '30.554395', xmax = '-96.25947', ymax = '30.751984', output = 'sf') # }