Find if a tag is standing still in an array
checkInactiveness(
movements,
tag,
detections,
n,
inactive.warning,
inactive.error,
dist.mat,
GUI,
save.tables.locally
)
A list of movements with updated 'Valid' columns
The movements table for a specific tag.
The tag being analysed.
The detections data.frame for a specific tag.
A string indicating the overall progress.
If a tag spends a number of days equal or greater
than inactive.warning
in a given array at the tail of the respective
detections, a warning is issued. If left NULL (default), no warnings are
issued. Must be equal to or lower than innactive.error
.
If a tag 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.
A distances matrix.
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".
Logical: If a table must be temporarily stored into a file for user inspection, should it be saved in the current working directory, or in R's temporary folder?