Learn R Programming

secr (version 1.3.0)

rawdata: Demonstration Data

Description

Two dataframes containing the demonstration data from program Density 4.1 (Efford 2007).

Usage

data(rawdata)

Arguments

source

Efford, M. G. (2007) Density 4.1: software for spatially explicit capture-recapture. Department of Zoology, University of Otago, Dunedin, New Zealand. http://www.otago.ac.nz/density.

Details

Fictitious data on 235 captures of 76 individuals over 5 occasions. 100 traps 30 metres apart on a square grid with origin (365 365). Dataframe trapXY contains the data from the Density input file `trap.txt', and captXY contains the data from `capt.txt'.

See Also

read.traps, make.grid, make.capthist

Examples

Run this code
## load demonstration data
data(rawdata)  ## trapXY, captXY
## construct a traps object from raw trap data
temptrap <- read.traps(data = trapXY, detector = 'single')
plot(temptrap)
## construct a capthist object
tempcapt <- make.capthist(captXY, temptrap, fmt='XY')
plot(tempcapt, tracks = TRUE)
## fmt='trapID' is usually simpler

Run the code above in your browser using DataLab