create.capt: Creating capture history object.

Description Usage Arguments Details

View source: R/convert.r


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


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



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


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.


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:

admbsecr documentation built on May 31, 2017, 3:18 a.m.