I hope this question is easier to understadn than the previous question I posted last week on an older thread. I am having trouble writing my read.capthist code. The goal of my research is to distinguish how density and detection probability is influenced by different spatial covariate effects (e.g. building density, road density, area of nonurban habitat patch , percentage of nonurban habitat patch within a 250 meter around each of my 120 trap sites). Within my trap input file, I included the covariates at each trap point along with the usage (binary values) of when each camera was active.
When I wrote the following code I received an error, but I am not sure what correction needs to be made
- Code: Select all
usage(traps("bobcatcapt.txt")
>NULL
CH <- read.capthist("bobcapt.txt", "CamSites.txt", trapcovnames = "BLDensity", "PercPatch", "PatchArea", "RoadDensity", detector = "proximity", fmt = "trapID", binary.usage = TRUE)
Error in read.traps(file = "CamSites.txt", detector = "proximity", :
'usage' fields suggest varying number of occasion
Any recommendations would be greatly appreciated as I am a bit confused on how to proceed.
Thank You Again in Advance,
Jason