Extract parts of an object of class ‘capthist’.
1 2 3 4 5 6 7 8 9 10
animalID(object, names = TRUE, sortorder = c("snk", "ksn")) occasion(object, sortorder = c("snk", "ksn")) trap(object, names = TRUE, sortorder = c("snk", "ksn")) alive(object, sortorder = c("snk", "ksn")) alongtransect(object, tol = 0.01) xy(object) xy(object) <- value telemetryxy(object, includeNULL = FALSE) telemetryxy(object) <- value telemetered(object)
a ‘capthist’ object
if FALSE the values returned are numeric indices rather than names
character code for sort order (see Details)
tolerance for snapping to transect line (m)
replacement value (see Details)
logical; if TRUE a NULL component is included for untelemetered animals
These functions extract data on detections, ignoring occasions when an
animal was not detected. By default, detections are ordered by occasion, animalID
and trap (
sortorder = "snk"). The alternative is to order by
trap, occasion and animalID (
sortorder = "ksn"). (‘n’, ‘s’ and ‘k’ are the
indices used internally for animals, occasions and traps respectively).
For historical reasons, "ksn" is used for locations within polygons and similar
trap returns polygon or transect numbers if
has detector type ‘polygon’ or ‘transect’.
alongtransect returns the distance of each detection from the
start of the transect with which it is associated.
Replacement values must precisely match
object in number of
detections and in their order.
xy<- expects a dataframe of x and y
coordinates for points of detection within a ‘polygon’ or ‘transect’
telemetryxy<- expects a list of dataframes, one per telemetered animal.
trap a vector of numeric or character values, one per detection.
alive a vector of logical values, one per detection.
occasion, a vector of numeric values, one per detection.
xy, a dataframe with one row per detection and columns ‘x’ and ‘y’.
object has multiple sessions, the result is a list with one
component per session.
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.