I'm currently following the "A tutorial on fitting spatially explicit capture–recapture
models in secr " document but I keep getting an error message when trying to estimate sigma.
library(secr)
setwd("C:/Users/lmcra/OneDrive/Desktop/Career/Uni/Honours/Data/Combined")
PossumCH <- read.capthist("CHistory.txt", "TrapLocations.txt", detector = "multi")
summary(PossumCH)
par(mar = c(1,1,3,1))
plot (PossumCH, tracks = TRUE)
m <- unlist(moves(PossumCH))
par(mar = c(3.2,4,1,1), mgp = c(2.1,0.6,0))
hist(m, breaks = seq(-61/2, 500,61), xlab = "Movement m", main = "")
initialsigma <- RPSV(PossumCH, CC = TRUE)
cat("Quick and biased estimate of sigma =", initialsigma, "m\n")
Once I click enter on the "cat..." line I get an error message saying Quick and biased estimate of sigma = Error in cat("Quick and biased estimate of sigma =", initialsigma, "m\n") : argument 2 (type 'list') cannot be handled by 'cat'
Does anyone know how to get passed this error?