GetSimultaneous: Identify simultaneous fixes between trajectories

View source: R/GetSimultaneous.R

GetSimultaneousR Documentation

Identify simultaneous fixes between trajectories

Description

The function GetSimultaneous identifies and extracts simultaneous fixes, within a given tolerance limit, between two movement datasets.

Usage

GetSimultaneous(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 determining simultaneous fixes. For simplicity, tc is always taken in seconds.

Details

This function is used to determine the simultaneous fixes between two movement datasets facilitating further analysis.

Value

A single ltraj object containing two bursts, representing the two original ltraj objects, each containing only those fixes that are deemed simultaneous.

See Also

GetTO

Examples

data(deer)
deer37 <- deer[1]
deer38 <- deer[2]
#tc = 7.5 minutes
trajs <- GetSimultaneous(deer37, deer38, tc = 7.5*60)
deer37 <- trajs[1]
deer38 <- trajs[2]


wildlifeDI documentation built on Nov. 14, 2023, 1:09 a.m.