# Build a set of detection events after determining the optimal blanking
# period (e.g. 2500 seconds)
build_residence(data = filtered_detections,
var_groups = "fish_type",
var_Id = "Tag_Code",
var_datetime = "DateTime_Local",
var_site = "receiver_general_location",
opt_mbp = 2500,
time_unit = "secs")
Run the code above in your browser using DataLab