Generates and adds a unique identification vector to PurpleAir sensors using the MazamaLocationUtils package, which creates a unique ID based upon coordinate location and device id.

Adds the following vectors:

  • deviceID --PurpleAir ID

  • locationID -- MazamaLocationUtils generated location ID

  • deviceDeploymentID -- A combination of device and location IDs

pas_addUniqueIDs(pas = NULL)

Arguments

pas

a pa_synoptic dataframe

Value

A dataframe with generated unique ID columns added.

Note

This function is only needed to add these IDs to archival pas generated with very early verions of the AirSensor package.