create.mask: Create mask object

View source: R/convert.r

create.maskR Documentation

Create mask object

Description

Creates a mask object to use with the function fit.ascr.

Usage

create.mask(traps, buffer, ...)

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.

buffer

The minimum distance between trap locations and the edge of the generated mask.

...

Arguments to be passed to make.mask.

Value

An object of class mask. The object has two useful attributes: area which gives the area of each grid cell in hectares and buffer which gives the value of buffer supplied to this function.

See Also

convert.mask to convert a mask compatible with the secr package.

Examples

mask <- create.mask(traps = example.data$traps, buffer = 20)

# calculate the area of the mask (in hectares)
mask_area <- attr(mask, "area") * nrow(mask)


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