sub-.detHist: Subsetting method for detection history

[.detHistR Documentation

Subsetting method for detection history

Description

Ensures that subsetting a detHist object (e.g. x[1], x["detection_history"]) retains the detHist class and its attributes, so the result still prints via print.detHist instead of falling back to the default list print.

Usage

## S3 method for class 'detHist'
x[i, ...]

Arguments

x

an object of class detHist

i

index specifying elements to extract

...

further arguments passed to or from other methods


camtrapR documentation built on July 28, 2026, 5:10 p.m.