convert.capt: Capture history conversion.

convert.captR Documentation

Capture history conversion.

Description

These functions convert a capture history object between the structures required for the ascr and secr packages.

Usage

convert.capt.to.ascr(capt)

convert.capt.to.admbsecr(capt)

convert.capt.to.secr(capt, traps, capthist = TRUE, cutoff = NULL)

Arguments

capt

A secr capture history object for convert.capt.to.ascr, or an ascr capture history object for convert.capt.to.secr.

traps

A matrix with two columns. Each row provides Cartesian coordinates for the location of a detector. Alternatively, this can be a list of such matrices if detections from multiple detector arrays (or ‘sessions’) are being used to fit a single model.

capthist

Logical, if TRUE, a capthist object is returned. Otherwise a data frame is returned, which is suitable for the captures argument to the make.capthist function.

cutoff

The signal strength threshold for detection, if required.

Value

A capture history object appropriate for analysis using either the ascr or the secr package.

Examples

capt <- convert.capt.to.secr(capt = example$capt, traps = example$traps, cutoff = example$cutoff)


b-steve/ascr documentation built on Aug. 15, 2022, 2:38 p.m.