Adds spatial metadata to a pa_synoptic object via the MazamaSpatialUtils Package using PurpleAir location coordinates to determine country, state, and timezone.

pas_addSpatialMetadata(pas = NULL, countryCodes = NULL)

Arguments

pas

PurpleAir Synoptic pas object.

countryCodes

(optional) ISO country codes used to subset the data.

Value

A pa_synoptic dataframe

See also

Examples

# \donttest{ library(AirSensor) initializeMazamaSpatialUtils() pas_enhanced <- example_pas_raw %>% pas_addSpatialMetadata() # }