The function checkTO
is a simple function for identifying if, and for how long, two telemetry datasets overlap (temporally) with each other. The function returns a dataframe with5 columns of information: the ids of the first an second individuals in a dyad, a logical variable indicating if the two trajectories overlap temporally, and timings of the beginning and end of the overlap period. If only a single move2 object is provided it considers all pairwise dyads within that move2 object. If two move2 objects are passed in it considers only the dyad pairs from traj against traj2. This can be used to test only the pairwise dyads between two groups (e.g., inter-species).
checkTO(traj, traj2)
A data.frame
of with five columns, ID1, ID2, TO (logical indicating if the two tracking dataset overlap temporally), the beginning (tmin
), and end (tmax
) of the overlap period, stored as POSIX
objects.
an object of the class move2
which contains the time-stamped movement fixes. For more information on objects of this type see help(mt_as_move2)
.
(optional) an object of the class move2
which contains the time-stamped movement fixes. For more information on objects of this type see help(mt_as_move2)
.
The function checkTO
can be used to identify if, when, and for how long the tracking data of two individuals overlap temporally.
GetSimultaneous, GetTO
data(does)
dyads <- checkTO(does)
Run the code above in your browser using DataLab