Learn R Programming

wildlifeDI (version 0.5.1)

GetTO: Get period where two tracks overlap

Description

The function GetTemporalOverlap identifies and extracts parts of a trajectory that overlap in time with another trajectory.

Usage

GetTO(traj1, traj2, tc = 0)

Value

A single ltraj object containing two bursts, representing the two original ltraj

objects, each containing only those fixes that are overlap in time.

Arguments

traj1

an object of the class ltraj which contains the time-stamped movement fixes of the first object. Note this object must be a type II ltraj object. For more information on objects of this type see help(ltraj).

traj2

same as traj1.

tc

time threshold for considering if fixes are in the overlap period.

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)
deer37 <- deer[1]
deer38 <- deer[2]
trajs <- GetTO(deer37, deer38)
deer37 <- trajs[1]
deer38 <- trajs[2]

Run the code above in your browser using DataLab