Learn R Programming

secr (version 1.3.0)

read.captures: Read Capture Data From File

Description

Input raw detection (capture) data for spatially explicit capture--recapture.

Usage

read.captures(file, ...)

Arguments

file
character string with name of text file
...
other arguments to be passed to read.table

Value

  • A dataframe.

Details

This brief function merely calls read.table and is therefore technically redundant. It accepts whatever data are in file. The result is used as input to make.capthist.

See Also

make.capthist

Examples

Run this code
## assumes 'capt.txt' in working folder
   temp <- read.captures(file = 'capt.txt', col.names = 
               c('Session','ID','Occasion', 'X', 'Y'))

Run the code above in your browser using DataLab