Learn R Programming

wildlifeDI (version 1.0.0)

GetTO: Get period where two tracks overlap

Description

The function GetTO identifies and extracts fixes of a tracking dataset that overlap in time with all other trajectories.

Usage

GetTO(traj, tb = 0)

Value

A single move2 object containing the fixes from traj that temporally overlap. If more than 2 individuals it will take the maximum of the earliest start-time from all individuals and minimum of the latest end-time of all individuals.

Arguments

traj

an object of the class move2 which contains the time-stamped movement fixes of >= 1 individual. For more information on objects of this type see help(mt_as_move2).

tb

(optional) time threshold (i.e., time buffer) for considering if fixes are in the overlap period (in seconds).

Details

This function is used to determine the fixes that overlap in time between two trajectories.

See Also

checkTO

Examples

Run this code
data(deer)
deer_to <- GetTO(deer)

Run the code above in your browser using DataLab