Hi Emeline,
duplicates are not removed by assessTemporalIndependence, but by
another function (removeDuplicatesOfRecords). This happens
automatically when using recordTable, but not when calling
assessTemporalIndependence. So in your case it would be easier to
remove the duplicates (as you suggested, the duplicated() function
helps with that).
Currently, there is no built-in way to keep the record with the highest count. The function always keeps the first record. But you can use the arguments "eventSummaryColumn" and "eventSummaryFunction" to retain and summarize information from the records that are removed, e.g. in your example
eventSummaryColumn = "Count"
eventSummaryFunction = "max"
would give the highest count. See the documentation of
?recordTable for details.
Best regards,
Jürgen
--
You received this message because you are subscribed to the Google Groups "camtrapR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camtrapr+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/camtrapr/af4e2974-7360-4b24-838a-e5c1f2d0944dn%40googlegroups.com.