actel (version 1.1.0)

simplifyMovements: Removes invalid events

Description

Remove invalid movement events and recalculate times/speeds.

Usage

simplifyMovements(movements, discard.first, fish, bio, speed.method, dist.mat)

Arguments

movements

A list of movements for each target tag, created by groupMovements.

discard.first

A threshold amount of time (in hours) that must pass after release for the respective detections to be valid. Set to 0 to discard only the release-to-first-detection calculations.

bio

A table with the tags and biometrics of the studied fish.

speed.method

Can take two forms: 'last to first' or 'last to last'. If 'last to first' (default), the last detection on the previous array is matched to the first detection on the target array to perform the calculations. If 'last to last', the last detection on <U+00B4>the previous array is matched to the last detection on the target array to perform the calculations.

dist.mat

A matrix of the distances between the deployed ALS.

Value

The movement data frame containing only valid events for the target fish.