assessTemporalIndependence: Assess temporal independence and generate a record table

View source: R/variousOtherHelperFunctions.R

assessTemporalIndependenceR Documentation

Assess temporal independence and generate a record table

Description

This function is intended for situations where a detection table has already been generated, for examples a recordTable has been generated and has been manipulated based on specific user's need, and there is the need to assess the independence of the detections.

Usage

assessTemporalIndependence(
  intable,
  deltaTimeComparedTo,
  columnOfInterest,
  cameraCol,
  camerasIndependent,
  stationCol,
  minDeltaTime,
  countsName
)

Arguments

intable

data.frame or data.table. A data frame or a data.table with the detections (e.g. the output from recordTable)

deltaTimeComparedTo

character. For two records to be considered independent, the second record must be at least minDeltaTime minutes after the last independent record of the same species ("lastIndependentRecord"), or minDeltaTime minutes after the last record ("lastRecord").

columnOfInterest

Character. Either the name of the species or individual column ID. The latter to obtain a recordTableIndividual

cameraCol

Character. The name of the camera column (e.g. "Camera")

camerasIndependent

logical. If TRUE, species records are considered independent between cameras at same station.

stationCol

character. Name of the camera trap station column. Assumes "Station" if undefined.

minDeltaTime

integer. The minimum specified time difference (in minutes) between records of the same species, at the same station, that are to be considered independent.

countsName

character. Vector of the metadata tag name (as per image management/tagging software) containing count/abundance information, or the vector of the name given to the count/abundance folder position within directoryInfoNames (e.g. "Counts").


carlopacioni/camtrapRdeluxe documentation built on Nov. 29, 2023, 3:37 a.m.