Hello all,
I'm trying to calculate the density of black rat populations on two islands (Gooseberry and Hooka) over 1 trapping session (4 days/occasions). I'm getting two different error codes when I try and read.capthist, and although the first error has been mentioned in a previous post I'm not sure how to solve it from the advice on that post.
Error 1:
> GRat <- read.capthist("Gooseberry Capt.txt", "Gooseberry Trap.txt", detector = "single")
Error in if (min(nfld) < 3) stop("requires 3 fields (detectorID, x, y)") :
missing value where TRUE/FALSE needed
In addition: Warning message:
In read.capthist("Gooseberry Capt.txt", "Gooseberry Trap.txt", detector = "single") :
NAs introduced by coercionError 2:
> HRat <- read.capthist("Hooka Capt.txt", "Hooka Trap.txt", detector = "single")
Error in read.traps(file = "Hooka Trap.txt", detector = "single", covnames = NULL, :
'usage' fields suggest varying number of occasions
In addition: Warning message:
In read.capthist("Hooka Capt.txt", "Hooka Trap.txt", detector = "single") :
NAs introduced by coercion
Am I missing a particular term in the read.capthist function for when you have a different number of usages for each trap? I have read through the secr-varyingeffort.pdf, but was not sure how it applied to when the usage was within the capture input file.
If anyone could help that would be much appreciated! I've attached the trap and capture files as well, as it seems to be a problem with the files in the first error and possibly a problem with the code in the second error?
Cheers,
Annabel