Adds an air district (if any) to a pa_synoptic object via the
MazamaSpatialUtils
Package using PurpleAir location coordinates to
determine the air basin the sensor is in.
pas_addAirDistrict(pas = NULL)
pas | PurpleAir Synoptic pas object. |
---|
A pa_synoptic dataframe
As of 2020-04-14, only California air basins is supported.
# \donttest{ library(AirSensor) initializeMazamaSpatialUtils() pas_enhanced <- example_pas_raw %>% pas_addSpatialMetadata() %>% pas_addAirDistrict() # }