GetSimultaneous: Identify simultaneous fixes between trajectories

Description Usage Arguments Details Value See Also Examples

View source: R/GetSimultaneous.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
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 June 16, 2021, 5:07 p.m.