Learn R Programming

aniSNA (version 1.1.1)

get_spatial_threshold: To obtain spatial threshold for calculating interactions from raw GPS observations. The threshold is obtained as the distance interval that captures maximum number of inter-individual interactions.

Description

To obtain spatial threshold for calculating interactions from raw GPS observations. The threshold is obtained as the distance interval that captures maximum number of inter-individual interactions.

Usage

get_spatial_threshold(species_interactions, interval_size)

Value

Spatial threshold in meters

Arguments

species_interactions

A dataframe consisting of individual interactions within maximum possible distance

interval_size

Minimum interval size within which the number of interactions should be calculated

Examples

Run this code
data(elk_all_interactions_2010)
get_spatial_threshold(elk_all_interactions_2010, interval_size = 2)

Run the code above in your browser using DataLab