simplifyMovements: Removes invalid events

View source: R/movements.R

simplifyMovementsR Documentation

Removes invalid events

Description

Remove invalid movement events and recalculate times/speeds.

Usage

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

Arguments

movements

the movement dataframe for the tag being analysed.

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.

tag

The tag ID of the animal currently being analysed

bio

The biometrics table.

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 ´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 tag.


actel documentation built on Oct. 19, 2023, 9:08 a.m.