create.mask | R Documentation |
Creates a mask object to use with the function
fit.ascr
.
create.mask(traps, buffer, ...)
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. |
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.
convert.mask to convert a mask compatible with the secr package.
mask <- create.mask(traps = example.data$traps, buffer = 20) # calculate the area of the mask (in hectares) mask_area <- attr(mask, "area") * nrow(mask)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.