Filter record table - date and time conversion error

28 views
Skip to first unread message

Sanjana V. K

unread,
Mar 15, 2025, 4:10:28 AMMar 15
to camtrapR
Hi,

I know this has been brought up before, but I couldn't find a solution . . . I'm having issues with this error:
recordDateTimeCol 'DateTimeOriginal' could not be converted to a date-time object.

I've tried converting the date and time from character to POSIXlt and reinstalling camtrapR, both of which didn't help. I'd really appreciate any help! My code, session info, str(data) and a subset of my data are attached below. Thanks in advance!

Warmly,
Sanjana
cleaned data subset.csv
FilterRecordTable error.txt

Juergen Niedballa

unread,
Apr 2, 2025, 12:22:45 PMApr 2
to camtrapR
Hi,
would you mind checking please if that still happens in the dev version form github? Install via:
# install.packages("remotes")   # uncomment if not installed
# install.packages("R.rsp")  # uncomment if not installed
remotes::install_github("jniedballa/camtrapR", ref = "dev", build_vignettes = TRUE)

Thank you,
Jürgen

Sanjana V. K

unread,
Apr 4, 2025, 3:12:26 AMApr 4
to Juergen Niedballa, camtrapR
Hi,

Thanks for getting back! I tried with the dev version but I'm still getting the same error:

Error in filterRecordTable(recordTable = data, minDeltaTime = 15, deltaTimeComparedTo = "lastIndependentRecord",  :
  recordDateTimeCol 'DateTimeOriginal' could not be converted to a date-time object.

Any other suggestions would be appreciated! Also, a minor typo in the code attached earlier: though it says recordDateTimeFormat = "%d-%m%Y %H:%M", I've been using "%d-%m-%Y %H:%M", so it's not a formatting error.

Warmly,
Sanjana

--
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, visit https://groups.google.com/d/msgid/camtrapr/5d35cd6e-1498-4975-b5d0-abad10457f9en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages