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