pas_upgrade: Upgrade _pa_synoptic_ object format

Description Usage Arguments Value Examples

View source: R/pas_upgrade.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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()
 

AirSensor documentation built on March 13, 2021, 1:07 a.m.