The receiver efficiency index is number between 0 and 1 indicating the amount of relative activity at each receiver compared to the entire set of receivers, regardless of positioning. The function takes a set detections and a deployment history of the receivers to create a context for the detections. Both the amount of unique tags and number of species are taken into consideration in the calculation.

The receiver efficiency index implement is implemented based on the paper Acoustic telemetry array evolution: From species- and project-specific designs to large-scale, multispecies, cooperative networks - https://www.sciencedirect.com/science/article/pii/S0165783618302509?via%3Dihub. Each receiver's index is calculated on the formula of:

$REI = \frac{T_r}{T_a} \times \frac{S_r}{S_a} \times \frac{DD_r}{DD_a} \times \frac{D_a}{D_r}$

REI = Receiver Efficiency Index

$T_r$ = The number of tags detected on the receiver

$T_a$ = The number of tags detected across all receivers

$S_r$ = The number of species detected on the receiver

$S_a$ = The number of species detected across all receivers

$DD_a$ = The number of unique days with detections across all receivers

$DD_r$ = The number of unique days with detections on the receiver

$D_a$ = The number of days the array was active

$D_r$ = The number of days the receiver was active

knitr::opts_chunk$set(collapse = T,comment ="", fig.pos = 'H')
is_html_output = function() {
  knitr::opts_knit$get("rmarkdown.pandoc.to") =="html"
}

Importing Libraries

We will import dplyr and glatos to run then visualize the REI.

library(dplyr)
library(glatos)

Importing Data

We will import the sample data below using glatos::read_glatos_detections() and glatos::read_glatos_receivers()

detection_file <- system.file("extdata", "walleye_detections.csv", package = "glatos")
receiver_file <- system.file("extdata", "sample_receivers.csv", package = "glatos")

receivers <- read_glatos_receivers(receiver_file)
detections <- read_glatos_detections(detection_file)

Cleaning Data

Below we use dplyr::mutate() to ensure that any recovery times that are set as NA are set to the current date and time. You can replace Sys.time() with the last known download time if you know it.

receivers <- receivers %>% 
  mutate( recover_date_time = replace(recover_date_time,
                                      is.na(recover_date_time), 
                                      Sys.time()))

Running REI

REI() takes two arguments. The first is a dataframe of detections the detection timstamp, the station identifier, the species, and the tag identifier. The next is a dataframe of deployments for each station. The station name should match the stations in the detections. The deployments need to include a deployment date and recovery date or last download date. Details on the columns mentioned see the preparing data section.

rei <- glatos::REI(detections,receivers)

The resulting dataframe looks like this:

head(rei)


jsta/glatos documentation built on July 11, 2022, 7:01 a.m.