Learn R Programming

secr (version 1.4.0)

write.captures: Write Data to Text File

Description

Export detections or detector layout to a text file in format suitable for input to DENSITY.

Usage

write.captures(object, file = "", ..., deblank = TRUE, header = TRUE,
    append = FALSE, sess = '1', ndec = 2)

write.traps(object, file = "", ..., deblank = TRUE,  header = TRUE,
    ndec = 2)

Arguments

object
capthist or traps object
file
character name of output file
...
other arguments passed to write.table
deblank
logical; if TRUE remove any blanks from character string used to identify detectors
header
logical; if TRUE output descriptive header
append
logical; if TRUE output is appended to an existing file
sess
character session identifier
ndec
number of digits after decimal point for x,y coordinates

Details

Existing file will be replaced without warning if append = FALSE. In the case of a multi-session capthist file, session names are taken from object rather than sess. write.capthist is generally simpler to use if you want to export both the capture data and trap layout from a capthist object.

Examples

Run this code
data (secrdemo)
  write.captures (captdata)

Run the code above in your browser using DataLab