Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

spacing

Detector or Mask Spacing


Description

Extract or replace the spacing attribute of a detector array or mask.

Usage

spacing(object, ...)
spacing(object) <- value

## S3 method for class 'traps'
spacing(object, ..., recalculate = FALSE)
## S3 method for class 'mask'
spacing(object, ..., recalculate = FALSE)

Arguments

object

object with ‘spacing’ attribute e.g. traps

value

numeric value for spacing

...

other arguments (not used)

recalculate

logical; if TRUE compute average spacing afresh

Details

The ‘spacing’ attribute of a detector array is the average distance from one detector to the nearest other detector.

The attribute was not always set by make.grid() and read.traps() in versions of secr before 1.5.0. If the attribute is found to be NULL then spacing will compute it on the fly.

Value

scalar numeric value of mean spacing, or a vector if object has multiple sessions

See Also

Examples

temptrap <- make.grid(nx = 6, ny = 8)
spacing(temptrap)

secr

Spatially Explicit Capture-Recapture

v4.4.1
GPL (>= 2)
Authors
Murray Efford
Initial release
2021-05-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.