pas_upgrade {AirSensor}R Documentation

Upgrade pa_synoptic object format

Description

The pas is checked for the latest pa_synoptic format and presence of core metadata columns:

Usage

pas_upgrade(pas = NULL, verbose = TRUE)

Arguments

pas

A pa_synoptic object.

verbose

(logical) Display upgrade messages.

Value

TRUE if pas has the correct structure, FALSE otherwise.

Examples


library(AirSensor)

# Initialize the required spatial utilities
initializeMazamaSpatialUtils()

# Use outdated pa_synoptic database
setArchiveBaseUrl('http://data.mazamascience.com/PurpleAir/v1')

pas <- 
  pas_load() %>%
  pas_upgrade()
 

[Package AirSensor version 1.0.8 Index]