format_detections: Format detections that have been queried from database

Description Usage Arguments Value Author(s)

View source: R/format_VUE_csv.R

Description

This function parses the TagID and Receiver columns from the detections table of the database, formats the UTC timestamp column to "

Usage

1
2
3
4
5
6
format_detections(
  dets_df,
  tagid_col = "TagID",
  rec_col = "Receiver",
  datetime_col = "DateTimeUTC"
)

Arguments

dets_df

Detections dataframe as it is returned by dbGetQuery("select * from detections") in the Yolo Telemetry Project .sqlite database.

tagid_col

Quoted name of the column with Tag or Fish IDs in it (defaults to "TagID"); this is passed to parse_tagid_col().

rec_col

Quoted name of the column with the Receiver ID in it (defaults to "Receiver"); this is passed to parse_receiver_col().

datetime_col

Quoted name of the column with detection date time stamps; defaults to "DateTimeUTC".

Value

A dataframe

Author(s)

Myfanwy Johnston


fishsciences/ybt documentation built on March 11, 2021, 8:45 a.m.