Learn R Programming

secr (version 2.5.0)

join: Combine or Split Sessions of capthist Object

Description

Make a single-session capthist object from a list of single-session objects, or a multi-session capthist object.

Usage

join(object, remove.dupl.sites = TRUE, tol = 0.001) 
unjoin(object, interval, ...)

Arguments

object
list of single-session objects, or a multi-session capthist object [join], or a single-session capthist object [unjoin]
remove.dupl.sites
logical; if TRUE then a single record is retained for each trap site used in multiple input sessions
tol
absolute distance in metres within which sites are considered identical
interval
vector of times between occasions; zero indicates same session
...
other arguments passed to subset.capthist

Value

  • For join, A single-session capthist object. The attribute `interval' records the distinction between occasions that are adjacent in the input (interval = 0) and those that are in consecutive sessions (interval = 1); `interval' has length one less than the number of occasions. For unjoin, a multi-session capthist object. Sessions are named with integers.

Details

[object Object],[object Object]

See Also

MS.capthist, rbind.capthist

Examples

Run this code
joined.ovenCH <- join (ovenCH)
summary(joined.ovenCH)
attr(joined.ovenCH, 'interval')

summary(unjoin(joined.ovenCH))

Run the code above in your browser using DataLab