conPhase: Process contact phases

Description Usage Arguments Details Value See Also Examples

View source: R/conPhase.R

Description

Computes phases where contacts occur based on a temporal tolerance.

Usage

1
conPhase(ltraj, pc = 0, idcol = "burst")

Arguments

ltraj

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

pc

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

idcol

column used to identify individuals (default is the burst)

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 ltraj object with new column contact_pha.

See Also

conProcess, conSpatial, conTemporal, conSummary

Examples

1
2
3
4
5
6
## Not run: 
data(does)
doecons <- conProcess(does,tc=15*60,dc=50)
doephas <- conPhase(doecons,pc=60*60)

## End(Not run)

wildlifeDI documentation built on June 16, 2021, 5:07 p.m.