pas_isPas: Test for correct structure in a _pa_synoptic_ object

View source: R/utils-paSynoptic.R

pas_isPasR Documentation

Test for correct structure in a pa_synoptic object

Description

The pas is checked for the "pas" class name and presence of core metadata columns:

  • ID – Purple Air ID

  • label – location label

  • sensorType – PurpleAir sensor type

  • longitude – decimal degrees E

  • latitude – decimal degrees N

  • timezone – Olson timezone

  • countryCode – ISO 3166-1 alpha-2

  • stateCode – ISO 3166-2 alpha-2

  • pm25_1hr – hourly PM2.5

  • pm25_1day – daily PM2.5

  • temperature – deg F

  • humidity – %

  • pressure – mb

  • deviceID – unique device identifier

  • locationID – unique location identifier

  • deviceDeploymentID – unique time series identifier

Usage

pas_isPas(pas = NULL)

Arguments

pas

A pa_synoptic object.

Value

TRUE if pas has the correct structure, FALSE otherwise.

See Also

pas_enhanceRawData

Examples

pas_isPas(example_pas)
pas_isPas(1:10)

MazamaScience/AirSensor documentation built on April 28, 2023, 11:16 a.m.