conDisplacement {wildlifeDI} | R Documentation |
Calculate net displacement from contacts
Description
Calculate the net-displacement (distance) of fixes before and after a contact phase from the nearest contact pahse in time.
Usage
conDisplacement(traj, def = "all")
Arguments
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 |
Details
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 variable related to the movement of the individual.
Value
An move2 object with a new 'contact_displacement' column indicating the straight-line distance to the nearest (in time) contact phase (defined using parameter def). If there are no contacts associated with an individual the contact displacement is NA.
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, conPhase, conTimelag
Examples
## 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)