Learn R Programming

wildlifeDI (version 1.0.0)

GetSimultaneous: Identify simultaneous fixes between trajectories

Description

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

Usage

GetSimultaneous(traj1, traj2, tc = 0)

Value

A move2 object containing two individuals, representing the two original move2

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

Arguments

traj1

an object of the class move2 which contains the time-stamped movement fixes of EXACTLY 1 individual. For more information on objects of this type see help(mt_as_move2).

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
library(move2)
data(deer)
deer37 <- deer[mt_track_id(deer) == '37',]
deer38 <- deer[mt_track_id(deer) == '38',]
deer_sim <- GetSimultaneous(deer37, deer38, tc = 7.5*60)
table(deer$id)
table(deer_sim$id)

Run the code above in your browser using DataLab