conPhase: Process contact phases

View source: R/conPhase.R

conPhaseR Documentation

Process contact phases

Description

Computes phases where contacts occur based on a temporal tolerance.

Usage

conPhase(traj, pc = 0)

Arguments

traj

an object of the class move2 which contains the time-stamped movement fixes of at least two individuals. For more information on objects of this type see help(mt_as_move2). This will be output from the function conProcess.

pc

time (in seconds) to allow for which to combine contact events (see details).

Details

This function is used following the conProcess function to arrange contacts into phases where continuous contact occurs (based on the user-defined time threshold pc. The idea is that we can consider a phase to be a continuous contact event (based on dc see conProcess) as long as the contact is only interrupted for no more than pc time units.

Value

An move2 object with new column contact_pha.

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

conProcess, conSpatial, conTemporal, conSummary

Examples

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

## End(Not run)


jedalong/wildlifeDI documentation built on April 13, 2024, 2:20 p.m.