Function to obtain pairs of interacting animals
interacting_pairs(
i,
datetime,
latitude,
longitude,
temporal_thresh,
spatial_thresh
)A matrix consisting of two row. The first row corresponds to the interacting indices and the second row to the respective distances.
Index of the animal
DateTime vector
latitude vector
longitude vector
time threshold in minutes
spatial threshold in meters