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 move2 which contains the time-stamped movement fixes. For more information on objects of this type see help(mt_as_move2).

traj2

(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).

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)


[Package wildlifeDI version 1.0.0 Index]