convert.traps: Convert traps object

View source: R/convert.r

convert.trapsR Documentation

Convert traps object

Description

Converts an ascr traps matrix to a secr traps object.

Usage

convert.traps(traps, ss = FALSE)

Arguments

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.

ss

Logical, set to TRUE if a signal strength detection function is to be used.

Details

The returned object is suitable for use as the traps argument of the function make.capthist.

Value

An object of class traps comprising a data frame of x- and y-coordinates, the detector type ('single', 'multi', 'proximity', 'count', 'polygon' etc.), and possibly other attributes.

Examples

traps <- convert.traps(traps = example.data$traps)


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