create.capt: Creating capture history object.

Description Usage Arguments Details

Description

Creates a capture history object to use with the function admbsecr.

Usage

1
create.capt(captures, n.traps = NULL)

Arguments

captures

A data frame of capture records, see 'Details' for the correct format.

n.traps

The total number of traps. If NULL then the number of traps is assumed to be the largest value in the traps column of the captures argument.

Details

The captures argument to this function is intended to be of a similar format to the captures argument to make.capthist in the secr package. That is, users can use the same captures data frame with create.capt and make.capthist, which generate capture histories for use with the admbsecr and secr packages respectively.

As such, the second and fourth columns should provide the ID of the detection and the trap number of the trap which made the detection (where the trap number is the row number of the corresponding trap in the matrix of trap locations). Note that the first and third columns provide the 'session' and 'occassion' of the detection for make.capthist, but as the admbsecr package does not presently have the capabilities to deal with multi-session or multi-occassion data, these columns are ignored by create.capt.

Additional optional columns can specify the additional information collected over the course of the survey:


b-steve/admbsecr documentation built on May 11, 2019, 5:20 p.m.