actel (version 1.1.0)

checkInactiveness: Find if a fish is standing still in an array

Description

Find if a fish is standing still in an array

Usage

checkInactiveness(
  movements,
  fish,
  detections.list,
  inactive.warning,
  inactive.error,
  dist.mat,
  GUI
)

Arguments

movements

The movements table

fish

The fish being analysed

detections.list

A list of the detections split by each target tag, created by splitDetections.

inactive.warning

If a fish spends a number of days equal or greater than inactive.error in a given array at the tail of the respective detections, a warning is issued. If left NULL (default), no warnings are issued.

inactive.error

If a fish spends a number of days equal or greater than inactive.error in a given array at the tail of the respective detections, user intervention is suggested. If left NULL (default), user intervention is never suggested.

GUI

One of "needed", "always" or "never". If "needed", a new window is opened to inspect the movements only if the movements table is too big to be displayed in R's console. If "always", a graphical interface is always created when the possibility to invalidate events emerges. If "never", a graphical interface is never invoked. In this case, if the table to be displayed does not fit in R's console, a temporary file will be saved and the user will be prompted to open and examine that file. Defaults to "needed".

Value

A list of movements with updated 'Valid' columns