checkTO {wildlifeDI} | R Documentation |
Check for temporal overlap
Description
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).
Usage
checkTO(traj, traj2)
Arguments
traj |
an object of the class |
traj2 |
(optional) an object of the class |
Details
The function checkTO
can be used to identify if, when, and for how long the tracking data of two individuals overlap temporally.
Value
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.
See Also
GetSimultaneous, GetTO
Examples
data(does)
dyads <- checkTO(does)