Would really appreciate some help on a slightly odd requirement. Very new to the ctmm package, so please bear with me if this is a stupid question!
I have created akde objects for multiple animals, and for each of them I am now trying to find whether the core home range (85% UD) encompasses a single GPS coordinate.
Can anyone suggest a way of doing this with some example code? Please let me know if you need a reproducible example (I'm not 100% sure if it would help in this instance).
Below is some background (but non vital) info on how I've done this before with regular KDEs if it helps answer the question.
I have done this before (with some pretty ugly code) using the adehabitatHR package by extracting the 85% contour from a UD using the "getverticeshr" function (e.g. getverticeshr(kud,percent=85))
where kud is the UD created from the "kernelUD" function.
I then converted the single gps coordinate (the one that may or may not be encompassed by the home range) into a SpatialPointsDataFrame.
I then ran the following code to determine if the isopleth contained the gps coordinate: over(id,Core_85[,2],fn=function(x) return(1))
Where Core_85 is the 85% contour (i.e. a "SpatialPolygonsDataFrame") from "getverticeshr".
This returns an NA if not found within that kernel, and a 1 if it is found.
Can anyone possibly suggest how I can do something similar in ctmm? I am struggling to even determine what all the slots within the akde object itself are!
Thanks very much in advance, and please let me know if you need more info and a reproducible example.