pas_addSpatialMetadata {AirSensor}R Documentation

Add Spatial Metadata to PurpleAIr Synoptic Data

Description

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

Usage

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

pas_enhanceData

Examples


library(AirSensor)

initializeMazamaSpatialUtils()

pas_enhanced <-
  example_pas_raw %>% 
  pas_addSpatialMetadata()


[Package AirSensor version 1.0.8 Index]