Learn R Programming

AirSensor (version 1.0.2)

pas_hasSpatial: Test for spatial metadata in pa_synoptic 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

If these columns are missing, they can be added by with pas_addSpatialMetadata.

Usage

pas_hasSpatial(pas)

Arguments

pas

A pa_synoptic object.

Value

TRUE if pas contains core spatial metadata, FALSE otherwise.

Examples

Run this code
# NOT RUN {
pas <- example_pas
pas_hasSpatial(pas)
# }

Run the code above in your browser using DataLab