Learn R Programming

wildlifeDI (version 0.5.1)

GetSimultaneous: 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)

Value

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

objects, each containing only those fixes that are deemed simultaneous.

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.

See Also

GetTO

Examples

Run this code
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]

Run the code above in your browser using DataLab