conTimelag | R Documentation |
Computes the time-lag from the nearest contact phase.
conTimelag(traj, def = "all")
traj |
an object of the class |
def |
how to define the point-of-contact. The default is to define it as all fixes in a phase |
This function is used following the conphase
function. One should choose how to define the contact point (i.e., the parameter contact
) depending on the research question.
A move2 object with an additional column contact_timelag with the time to the nearest (in time) contact phase. Negative values indicate times prior to the nearest contact phase and postive values indicate times after the nearest contact phase. If an individual has no contacts, the contact time-lag is NA.
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.
conPhase, conProcess, conDisplacement
## Not run:
data(does)
doecons <- conProcess(does,tc=15*60,dc=50)
doephas <- conPhase(doecons,pc=60*60)
conTL_first <- conTimelag(doephas,def='first')
conTL_all <- conTimelag(doephas,def='all')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.