conTemporal: conTemporal

View source: R/conTemporal.R

conTemporalR Documentation

conTemporal

Description

Create a summary dataframe of the timing and and duration of contact phases.

Usage

conTemporal(traj, units = "auto")

Arguments

traj

an object of the class ltraj which is output from the function conPhase.

units

units of duration e.g., 'mins' (see difftime).

Details

This function is used to calculate the start and end times of contact phases, and their duration following use of the conPhase function.

Value

A data frame, with the time and duration attributes associated with contact phases.

References

Long, JA, Webb, SL, Harju, SM, Gee, KL (2022) Analyzing Contacts and Behavior from High Frequency Tracking Data Using the wildlifeDI R Package. Geographical Analysis. 54, 648–663.

See Also

conPhase

Examples

## Not run: 
data(does)
doecons <- conProcess(does,tc=15*60,dc=50)
doephas <- conPhase(doecons,pc=60*60)
conTemporal(doephas)

## End(Not run)


wildlifeDI documentation built on Nov. 14, 2023, 1:09 a.m.