getPMinRegion: get real-time PM2.5 within a geographic boundary

Description Usage Arguments Value Examples

View source: R/getPMinRegion.R

Description

get real-time PM2.5 levels of all the stations with a geographical boundary in the format of (a) centroid = c(lat, lon) and distance (default = 50 miles) or (b) geobound = c(lat1, lon1, lat2, lon2). Return local time, station location and PM2.5 level. The results are sorted by PM2.5 levels

Usage

1
getPMinRegion(centroid, distance = 50, geobound)

Arguments

centroid

geographical location represented by latitude and longitude

distance

double

geobound

numeric vector of length 4L in the format c(lat1, lon1, lat2, lon2)

Value

a tibble

Examples

1
## Not run: getPMinRegion(geobound = c(38.164368, -122.85501, 37.203647, -121.431634)) #san francisco bay area

jinhuali/globalPM25 documentation built on May 19, 2019, 7:16 a.m.