updateUID: Update Detection UIDs

View source: R/updateUID.R

updateUIDR Documentation

Update Detection UIDs

Description

Update the UIDs of detections in a Pamguard database. UIDs can become mismatched when re-running data, this will attempt to re-associate the new UIDs in binary files with detections in the database

Usage

updateUID(db, binaries, verbose = TRUE, progress = TRUE)

Arguments

db

database file to update UIDs

binaries

folder of binary files to use for updating

verbose

logical flag to show summary messages

progress

logical flag to show progress bars

Value

Same database as db, but with an additional column "newUID" added to each detection table with updated UIDs if found. "newUID" will be -1 for any detections where no match was found

Author(s)

Taiki Sakai taiki.sakai@noaa.gov

Examples


## Not run: 
# not run because sample data does not exist
db <- 'MismatchedUid.sqlite3'
bin <- './BinaryFolder'
updateUID(db, bin)

## End(Not run)


PAMmisc documentation built on Aug. 17, 2023, 1:06 a.m.