This function reports problems indicated by extreme movements in a capthist object. At present it is configured for distances measured along a linearmask only.
checkmoves (CH, accept = c(0, 1000), userdist, mask, showall = TRUE, silent = FALSE)
Invisibly returns a list with components
logical vector with one element for each animal (i.e. each row in CH)
subset of the input CH containing the faulty detection histories
dataframe detailing the faulty detections
single-session secr capthist object
range of accepted movements in metres; may include Inf
matrix of distances between all traps(CH) (optional)
linearmask object (optional)
logical; if TRUE the output dataframe includes all detections of each individual with at least one extreme movement
logical; if TRUE then console output is suppressed
This function works with Euclidean distances (the default if neither
mask
nor userdist
is specified), non-Euclidean network distances
implied by a linear habitat mask, or any distances presented in userdist
.
Linear habitat masks are prone to breaks (missing edges in the graph representation). If an animal is `recaptured' on both sides of a break then the network distance for that `movement' will be infinite.
checkmoves
displays the message `All OK' if there are no
out-of-range movements, and otherwise displays the number of
individuals with out-of-range movements.
linearmask
out <- checkmoves(captdata, accept = c(0,100))
out
Run the code above in your browser using DataLab