grabQC() lets you obtain subsets of the QC output

grabQC(
  x,
  what = c("dQC", "detections", "QCflags", "tag_meta", "rec_meta", "meas"),
  flag = "all"
)

Arguments

x

a QC output object (a nested tibble with class remora_QC)

what

defined subset of the QC output is to be grabbed; either detections, QCflags, dQC (detections and QCflags), tag_meta (transmitter deployment metadata), rec_meta (receiver deployment metadata), or meas (animal measurements)

flag

specifies which quality controlled detections to return (see examples): any combination of: valid, likely valid, likely invalid, invalid, or all. The default is to return all detections. Ignored if what is any of tag_meta, rec_meta or meas.

Value

a data frame with the requested subset of the QC output

Examples

## grab detections and QCflags from example QC output & return only the
## `valid` and `likely valid` detections
data(TownsvilleReefQC)
d.qc <- grabQC(TownsvilleReefQC, what = "dQC", flag = c("valid", "likely valid"))

## return all detections
d.qc <- grabQC(TownsvilleReefQC, what = "dQC")