I am trying to handle a database like the one below which has camera trap data. There is no lag between photos being taken so ones that occur in quick succession are likely to be the same individual.
I want to remove duplicates of species if they occur within 10 minutes of eachother as they are likely to be the same individual. (ie if less that 10 minutes elapses between the last photo and the next one). Is there a way to do this in R? Thank you!
Site.Name Sampling.Unit.Name Photo.Date Photo.Time Genus Species Number.of.Animals
1 Ranomafana CT-RNF-1-01 06/10/2010 00:01:00
2 Ranomafana CT-RNF-1-01 11/10/2010 00:28:00 Eliurus tanala 1
3 Ranomafana CT-RNF-1-01 12/10/2010 04:39:22 Fossa fossana 1
4 Ranomafana CT-RNF-1-01 12/10/2010 04:39:27 Fossa fossana 1
5 Ranomafana CT-RNF-1-01 12/10/2010 16:47:41 Nesomys rufus 1
6 Ranomafana CT-RNF-1-01 12/10/2010 16:47:46 Nesomys rufus 1