calc_spint_track: Calculate Spatial Intensity of Returns (Single Track)

View source: R/fidelity_funs_calculate-return-intensity.R

calc_spint_trackR Documentation

Calculate Spatial Intensity of Returns (Single Track)

Description

Function to calculate spatial intensity of returns on a single scenario/ID combination. Called by calc_spint().

Usage

calc_spint_track(r, dist, lag)

Arguments

r

Data frame of returns obtained from calc_returns() for one individual.

dist

Numeric. Distance used to calculate returns. Unit should match the unit of the coordinates: m if UTM, degrees if lat/long. #' @param lag Numeric. Temporal lag of returns (unit is locations, e.g., 42 for one week at 6h resolution). Must match one of the lags used in calc_returns().

Value

A vector with as many elements as the number of locations that were revisited at least once. Values indicate the number of returns to each of those revisited locations.


picardis/fidelity documentation built on Dec. 10, 2022, 6:16 a.m.