Learn R Programming

secr (version 2.4.0)

summary.traps: Summarise Detector Array

Description

Concise description of traps object.

Usage

## S3 method for class 'traps':
summary(object, getspacing = TRUE, \dots)
## S3 method for class 'summary.traps':
print(x, terse = FALSE, \dots)

Arguments

object
traps object
getspacing
logical to calculate spacing of detectors from scratch
x
summary.traps object
terse
if TRUE suppress printing of usage and covariate summary
...
arguments passed to other functions

Value

  • An object of class summary.traps, a list with elements
  • detectordetector type ("single", "multi", "proximity" etc.)
  • ndetectornumber of detectors
  • xrangerange of x coordinates
  • yrangerange of y coordinates
  • spacingmean distance from each trap to nearest other trap
  • usagetable of usage by occasion
  • covarsummary of covariates

Details

When object includes both categorical (factor) covariates and usage, usage is tabulated for each level of the covariates. Computation of spacing (mean distance to nearest trap) is slow and may hit a memory limit when there are many traps. In this case, turn off the computation with getspacing = FALSE.

See Also

print, traps

Examples

Run this code
demo.traps <- make.grid()
summary(demo.traps)   ## uses print method for summary.traps object

Run the code above in your browser using DataLab