Learn R Programming

AirSensor (version 1.0.8)

pas_addAirDistrict: Add an air district to PurpleAir Synoptic Data

Description

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.

Usage

pas_addAirDistrict(pas = NULL)

Arguments

pas

PurpleAir Synoptic pas object.

Value

A pa_synoptic dataframe

See Also

pas_enhanceData

Examples

Run this code
# NOT RUN {
library(AirSensor)

initializeMazamaSpatialUtils()

pas_enhanced <-
  example_pas_raw %>% 
  pas_addSpatialMetadata() %>%  
  pas_addAirDistrict() 
# }

Run the code above in your browser using DataLab