recordTable function using data sheet generated from Timelapse software

91 views
Skip to first unread message

Nor Bazilah Razali

unread,
Oct 10, 2023, 5:54:35 AM10/10/23
to camtrapR
Hi all, 

Is it possible to use the recordTable function to generate a species table using the data sheet generated from Timelapse software? I've attached the sample data from Timelapse data sheet for you to look over. 

Thanks for any help, much appreciated

Regards,
Bazilah
Timelapse_sample.csv

Nadia

unread,
Oct 18, 2023, 10:46:40 AM10/18/23
to camtrapR
Hi,

I would be interested to get this answer as well! I have annotated my data on the Timelapse software too, but I am not sure it is in the same output format of the recordTable function. 

Nadia

Nor Bazilah Razali

unread,
Oct 19, 2023, 11:24:40 AM10/19/23
to camtrapR
Hi Nadia,

Recently, I figured out how to extract data from the Timelapse datasheet using filterRecordTable (Filter species record table for temporal independence). First, you need to install these packages to enable the filterRecordTable function:

install.packages("remotes") # if not installed
install.packages("R.rsp")   # if not installed
remotes::install_github("jniedballa/camtrapR", build_vignettes = TRUE)

Then,  you make the timelapse datasheet from csv format to data frame using data.frame function. Afterward, you tally the speciesCol, stationCol, and recordDateTimeCol according to  Timelapse Datasheet. Mine might be different than yours.

Below are the scripts I manage to make R run the filterRecordTable.

timelapse <- read.csv("BRCT33.csv")
dftimelapse <- data.frame(timelapse)

rec_table_filt <- filterRecordTable(recordTable         = dftimelapse,
                                    speciesCol          = "Species",
                                    stationCol = "CamtrapID",
                                    recordDateTimeCol   = "DateTime",
                                    minDeltaTime        = 60,
                                    deltaTimeComparedTo = "lastIndependentRecord")

table(rec_table_filt$Species)

Hope it helps.

Best Regards,
Bazilah

Jürgen Niedballa

unread,
Nov 1, 2023, 11:35:02 AM11/1/23
to Nor Bazilah Razali, camtrapR
Hello, 
The tables from Timelapse can be used directly, so they already are record tables and there is no need to convert anything. filterRecordTable is an optional step.

One can also proceed with detectionHistory (if occupancy analyses are the aim). 
In that case one needs to adjust speciesCol, stationCol and dateTimeCol, and possibly adjust dateTimeFormat.

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/90e6e417-9c74-4899-8547-f085983de9aan%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages