Function to obtain pairs of interacting animals
interacting_pairs( i, datetime, latitude, longitude, temporal_thresh, spatial_thresh )
i
: Index of the animaldatetime
: DateTime vectorlatitude
: latitude vectorlongitude
: longitude vectortemporal_thresh
: time threshold in minutesspatial_thresh
: spatial threshold in metersA matrix consisting of two row. The first row corresponds to the interacting indices and the second row to the respective distances.
Useful links