jniedballa / camtrapR

R package for camera trap data management
https://jniedballa.github.io/camtrapR/
32 stars 5 forks source link

recordTable: n_images wrong when duplicate records exist and removeDuplicateRecords = FALSE #2

Open jniedballa opened 4 years ago

jniedballa commented 4 years ago

n_images can be >1 for duplicate records when minDeltaTime = 0 removeDuplicateRecords = FALSE

(because exactly same time)

wd_images_ID <- system.file("pictures/sample_images", package = "camtrapR")
rec_table0 <- recordTable(inDir               = wd_images_ID,
                          IDfrom                 = "directory",
                          minDeltaTime           = 0, 
                          removeDuplicateRecords = FALSE)

#  these should be equal
nrow(rec_table0)   
sum(rec_table0$n_images)