Hello,
I want to apologize in advance because I am a novice with R so this quite possibly is a problem on that end.
I was excited to find the option to include when particular detectors were not operated because we were not able to keep all the traps open during all years of our study (and some were closed during particular occasions within a year due to inaccessibility). This would allow me to include a data file with all three sessions, but indicate the somewhat different trapping array each time. However, when I attempt to run it, I get this error message:
Session 1
Conflicting number of occasions in usage matrix
capthist : 5 occasions
usage(traps(capthist)) : 15 occasions
Session 2
Conflicting number of occasions in usage matrix
capthist : 5 occasions
usage(traps(capthist)) : 15 occasions
Session 3
Conflicting number of occasions in usage matrix
capthist : 5 occasions
usage(traps(capthist)) : 15 occasions
My data files has the lines:
Trap X Y trap availability
a # # 0000011111011111
…
My code was:
myCH<-read.capthist("traphistoryf.txt","traplocation.txt", detector="multi", fmt="trapID", covnames = "sex", verify = TRUE)
I have three primary occasions/years and 5 secondary occasions/trapping weeks within year. I thought perhaps I needed a space between the trap availability for primary sessions, but then got:
Error in read.traps(file = "traplocation.txt", detector = "multi", :
'usage' fields suggest varying number of occasions
How do I need to adjust my data file and/or code to correct this?
Thank you!