pas_hasSpatial: Test for spatial metadata in _pas_ object

View source: R/utils-pas.R

pas_hasSpatialR Documentation

Test for spatial metadata in pas object

Description

Tests for the existence of the following core spatial metadata columns:

  • longitude – decimal degrees E

  • latitude – decimal degrees N

  • timezone – Olson timezone

  • countryCode – ISO 3166-1 alpha-2

  • stateCode – ISO 3166-2 alpha-2

Usage

pas_hasSpatial(pas = NULL)

Arguments

pas

A PurpleAir Synoptic pas object.

Value

TRUE if pas contains core spatial metadata, FALSE otherwise.

Examples

library(AirSensor2)
example_pas_pm25_raw %>% pas_hasSpatial() %>% print()
example_pas_pm25 %>% pas_hasSpatial() %>% print()

MazamaScience/AirSensor2 documentation built on Oct. 31, 2024, 1:39 a.m.