addPgEvent: Add Pamguard Event to Database

Description Usage Arguments Value Author(s) Examples

View source: R/addPgEvent.R

Description

Add a new event to an existing Pamguard database in the "OfflineEvents" table. If the specified eventType does not exist in the database, it will be added to the "Lookup" table.

Usage

1
addPgEvent(db, UIDs, binary, eventType, comment = NA, tableName = NULL)

Arguments

db

database file to add an event to

UIDs

vector of the UIDs of the individual detections to add to the event

binary

binary file containing the detections from UIDs

eventType

the name of the event type to add. If this is not already present in the database, it will be added to the "Lookup" table

comment

(optional) a comment for the event

tableName

(optional) specify the name of the Click Detector that generated the event table you want to add to. This only needs to be specified if you have more than one click detector, it defaults to the first "NAME_OfflineEvents" table in the database.

Value

Adds to the database db, invisibly returns TRUE if successful

Author(s)

Taiki Sakai taiki.sakai@noaa.gov

Examples

1
2
3
4
5
6
7
## Not run: 
myDb <- 'PamguardDatabase.sqlite3'
myBinaries <- c('./Binaries/Bin1.pgdf', './Binaries/Bin2.pgdf')
addUIDs <- c(10000001, 10000002, 20000007, 20000008)
addPgEvent(db = myDb, UIDs = addUIDs, binary = myBinaries, eventType = 'MyNewEvent')

## End(Not run)

PAMmisc documentation built on Oct. 8, 2021, 9:08 a.m.