Description Usage Arguments Value Examples
View source: R/getPMinRegion.R
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
1 | getPMinRegion(centroid, distance = 50, geobound)
|
centroid |
geographical location represented by latitude and longitude |
distance |
double |
geobound |
numeric vector of length 4L in the format c(lat1, lon1, lat2, lon2) |
a tibble
1 | ## Not run: getPMinRegion(geobound = c(38.164368, -122.85501, 37.203647, -121.431634)) #san francisco bay area
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.