I am working with capture recapture data from 5 sessions. I am not yet sure whether there will be sufficient recaptures for SECR, so this may end up as a non-spatial model in openCR but I suspect I will the need the same capthist object regardless.
Within each session, there were 10x grids of 16 traps that were opened for various consecutive nights in a row (this varies per grid and per session) over a 6-9 day period. There are two instances where an individual has been caught in 2 grids within a session. For this reason, I think I need to sync the occasions within a session so that each date represents an occasion (to prevent individuals being 'caught' twice in the same occasion). With this approach, each session has between 5 and 8 occasions, and I specify which traps are open for each of these with binary usage columns (separate trap file for each session).
When I run the following code, I get
"Error in read.traps(file = "trap data\\trap files\\trapfile_Jundee_1.csv", :
'usage' fields suggest varying number of occasions"
Jundee_capthist <- read.capthist(captfile="trap data\\captfile_Jundee.csv",
trapfile = list("trap data\\trap files\\trapfile_Jundee_1.csv",
"trap data\\trap files\\trapfile_Jundee_2.csv",
"trap data\\trap files\\trapfile_Jundee_3.csv",
"trap data\\trap files\\trapfile_Jundee_4.csv",
"trap data\\trap files\\trapfile_Jundee_5.csv", binary.usage = T),
fmt="trapID",
detector = "multi",
noccasions = c(8,7,8,8,5))
Reading each trapfile in individually with read.traps works fine, but attempting to combine them into the capthist object with the code above is when I get the error.
There are no occasions where no traps are open (i.e. at least one grid is always operating per occasion). There are no captures from occasions that exceed those specified in the trap files.
Do you have any suggestions for getting past this error? I am using version 5.2.4. Examples of the capture and trap file attached for reference.
Sincere thanks for any advice!
Cheers,
Tash