Learn R Programming

aniSNA (version 1.1.1)

interacting_pairs: 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
)

Value

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

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