filter_2h {telemetR} | R Documentation |
Basic Two Hit Filter for Detections
Description
This function takes a detection dataframe generated from the add_org() function and filters it a second time to remove any remaining multipath detections, and then check the remaining detections by comparing the time between each detection to ensure it is less 4x the stated pulse rate interval. Called by second_filter_2h4h().
Usage
filter_2h(org_file, time_unit, multipath_time, org_ping_rate)
Arguments
org_file |
a dataframe of detections retrieved from add_org() |
time_unit |
The unit of time used for analyses (seconds, minutes, hours, days, weeks, months) |
multipath_time |
A numeric maximum amount of time which must pass between detections for a detection to be considered a "true", not a bounced, signal. |
org_ping_rate |
The expected time between transmissions emitted from tags/transmitters implanted or attached to an organism |
Value
A dataframe which has been filtered to remove false positives
Examples
# Apply a 2-hit filter to data previously prefiltered and with organism data
filter_2h(org_file = dat_orgfilt,
time_unit = "secs",
multipath_time = 0.3,
org_ping_rate = 3)