deleteFromMotus: delete a set of detections from motus by adding records to...

Description Usage Arguments Details Value Author(s)

View source: R/deleteFromMotus.R

Description

delete a set of detections from motus by adding records to the batchDelete table.

Usage

1
2
deleteFromMotus(src, reason = "not given", monoBN = NULL, tsStart = 0,
  tsEnd = 1e+11)

Arguments

src

dplyr src_sqlite to receiver database

reason

character scalar giving reason for deletion, in human-readable form

monoBN

boot session number; required if an SG receiver; omit or set to NULL for a Lotek receiver.

tsStart

starting timestamp; if specified, only those batches containing at least 1 detection with timestamp >= tsStart are deleted

tsEnd

ending timestamp; if specified, only those batches containing at least 1 detection with timestamps <= tsEnd are deleted

Details

detections are added or removed from motus in batches. For Lotek receivers, a batch is a sequence of all detections in a range of timestamps. For an SG receiver, a batch is additionally constrained to be within a single boot session. Boot sessions can cover multiple batches, however.

The batches deleted will be:

  1. Lotek receiver: all batches satisfying the tsStart and/or tsEnd constraints, whichever are specified, are deleted. If neither tsStart nor tsEnd is specified, all batches for this receiver are deleted.

  2. SG receiver: all batches with the specified monoBN and satsifying any specified tsStart / tsEnd constraints are deleted. If neither tsStart nor tsEnd is specified, all batches for this receiver and boot session are deleted.

Value

TRUE on success; FALSE otherwise

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm


jbrzusto/motusServer documentation built on May 19, 2019, 8:19 a.m.