interacting_pairs {aniSNA}R Documentation

Function to obtain pairs of interacting animals

Description

Function to obtain pairs of interacting animals

Usage

interacting_pairs(
  i,
  datetime,
  latitude,
  longitude,
  temporal_thresh,
  spatial_thresh
)

Arguments

i

Index of the animal

datetime

DateTime vector

latitude

latitude vector

longitude

longitude vector

temporal_thresh

time threshold in minutes

spatial_thresh

spatial threshold in meters

Value

A matrix consisting of two row. The first row corresponds to the interacting indices and the second row to the respective distances.


[Package aniSNA version 1.1.1 Index]