calc_spint: Calculate Spatial Intensity of Returns (Multiple Tracks)

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

calc_spintR Documentation

Calculate Spatial Intensity of Returns (Multiple Tracks)

Description

Function to calculate spatial intensity of returns.

Usage

calc_spint(rets, dist, lag)

Arguments

rets

Data frame of returns obtained from calc_returns().

dist

Numeric. Distance used to calculate returns. Unit should match the unit of the coordinates: m if UTM, degrees if lat/long.

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 data frame with 2 columns, one for scenario ID and one for the number of returns to each revisited location. For each scenario, the data frame will include as many rows as the number of locations that were revisited at least once.


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