Hi Lydia,
I was not able to reproduce your problem, and cameraOperation()
worked with the code you sent in v.2.2.0.
Do you have package lubridate installed and loaded? Maybe also
try updating lubridate. as.duration() is a lubridate function, so
the problem comes from that direction.
Below is the output from the code you shared, plotted with camtrapR:::camopPlot(). Left side is your code, right side is with camerasIndependent= T (for test purposes).
Blue is high effort, turqoise intermediate, and yellow 0. Does this look correct?
Also, the file name in your code is different from the file name
you shared. So please make sure that the data frames match.
And also, I see your table uses column names "start" and "end"
for your setup and retrieval column. These are also used by an
intermediate step inside the function that calculates the duration
of problem periods. Try renaming your setup/retrieval columns and
see if the error persists.
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/5eda245e-49eb-4fdd-8ed2-04112c4d90bdn%40googlegroups.com.