direction: Computes the direction of movement for each tag detection

Description Usage Arguments Details Value Examples

View source: R/direction.R

Description

Function that determines the direction of movement for each tag detection on each antenna if there were two or more antennas deployed in a study.

Usage

1

Arguments

data

telemetry dataset created using old_pit, new_pit or array_config

Details

Antennas must be numbered sequentially and any antennas from single readers that have not be renamed using array_config (i.e., the antenna number is NA) will not be considered by the function. Users can apply the direction function to the original dataset created by the old_pit or new_pit function, or use an updated dataset created by the array_config function.

Value

Data frame summarizing the direction of movement.

Examples

1
2
3
4
5
# Load test dataset containing detections from a multi reader with two antennas
oregon_rfid <- new_pit(data = "oregon_rfid", test_tags = NULL, print_to_file = FALSE, time_zone = "America/Vancouver")

# Determine the direction of fish movement
direction(data = oregon_rfid)

InStreamFisheries/PITR documentation built on Jan. 7, 2021, 1:02 p.m.