files_from_recv_DB: return a dplyr::tbl of files from a receiver database

files_from_recv_DBR Documentation

return a dplyr::tbl of files from a receiver database

Description

return a dplyr::tbl of files from a receiver database

Usage

files_from_recv_DB(serno, day = NULL)

Arguments

serno

character scalar receiver serial number

day

character scalar day; default NULL

Value

a tbl; one of two flavours, depending on the receiver type and 'day'.

If the receiver is a sensorgnome and day is NULL, the return value has these columns sorted by decreasing day:

  • day: character; day, formatted as "YYYY-MM-DD"

  • count: integer; number of files from the day in the receiver DB 'files' table.

For a Lotek receiver, count is always 1, and each row simply indicates that the receiver recorded at least one detection that day. As for sensorgnomes, this flavour of return value is meant to indicate whether the receiver was operating that day.

Otherwise, if 'day' is given, the return value has these columns, sorted by fileID:

  • fileID: integer; ID of file

  • name: character; name of file

  • bootnum: integer; boot count, uncorrected; if an SG file

  • monoBN: integer; corrected boot count; if an SG file

  • contentSize: integer; uncompressed file size in bytes

  • jobID: the integer motus ID for the job in which this file was most recently updated

For Lotek receivers, this will be a list of all data files; for sensorgnomes, this will only include files from the given day.


MotusWTS/motusServer documentation built on April 12, 2025, 2:34 p.m.