View source: R/conDisplacement.R
conDisplacement | R Documentation |
Calculate the net-displacement (distance) of fixes before and after a contact from that contact point.
conDisplacement(ltraj, def = "all", idcol = "burst")
ltraj |
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 |
idcol |
column id associated with IDs of individuals, default is the 'burst' |
This function is used to compute the net displacement away from contacts by an animal before and after a contact phase. Net displacement represents an important contextual variable, related to the mobility of the individual.
An ltraj object with a new 'displacement' column in infolocs.
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, conContext
## Not run:
data(does)
doecons <- conProcess(does,tc=15*60,dc=50)
doephas <- conPhase(doecons,pc=60*60)
disp_f <- conDisplacement(doephas,def='first')
disp_l <- conDisplacement(doephas,def='last')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.