GetTO: Get period where two tracks overlap

Description Usage Arguments Details Value See Also Examples

View source: R/GetTO.r

Description

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

Usage

1
GetTO(traj1, traj2, tc = 0)

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.

Value

A single ltraj object containing two bursts, representing the two original ltraj objects, each containing only those fixes that are overlap in time.

See Also

checkTO

Examples

1
2
3
4
5
6
data(deer)
deer37 <- deer[1]
deer38 <- deer[2]
trajs <- GetTO(deer37, deer38)
deer37 <- trajs[1]
deer38 <- trajs[2]

wildlifeDI documentation built on June 16, 2021, 5:07 p.m.