Learn R Programming

AirSensor (version 1.0.2)

pas_addSpatialMetadata: 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

Run this code
# NOT RUN {
library(AirSensor)

initializeMazamaSpatialUtils()

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

Run the code above in your browser using DataLab