Learn R Programming

filteRjsats (version 1.0)

prefilter: Apply the "prefilter" to a Detection Dataframe

Description

This function takes a detection dataframe output from read_jsats or from format_detects and filters out multipath signals (time between detections < 0.3 seconds) and spurious signals which do not occur within a specified time frame of the last detection. For beacon tags, this time frame is 192 seconds, and for fish, this time is 120 seconds. Following this, the dataframes are standardized so that all detection dataframes from any technology type are identical and superfluous fields are removed.

Usage

prefilter(jsats_file, reference_tags)

Value

A standardized detection dataframe with multipath detects removed

Arguments

jsats_file

A dataframe which is the output from read_jstats() or format_detects()

reference_tags

A vector of potential reference (beacon) tag IDs

Examples

Run this code
# Filter a raw detection dataset
prefilter(raw_ats, reftags)

Run the code above in your browser using DataLab