summary(FebpossumCH)
m.array(FebpossumCH)
JS.counts(FebpossumCH)
FebD1CH <- subset(FebpossumCH, occasion = 1)
if (FALSE) {
# reading the text file 'poss8088.data'
datadir <- system.file('extdata', package = 'openCR')
poss8088df <- read.table (paste0(datadir,'/poss8088.data'), header = TRUE)
capt <- poss8088df[,c('session','id','day','day','sex')]
# duplication of day is a trick to get a dummy trapID column in the right place
# this is needed because make.capthist does not have nonspatial option
capt$day.1[] <- 1
# keep only February samples
capt <- capt[capt$session %% 3 == 1,]
# build nonspatial secr capthist object using dummy trapping grid
FebpossumCH <- make.capthist(capt, make.grid(1,2,ID='numx'))
# discard dummy traps objects
for (i in 1:9) attr(FebpossumCH[[i]], 'traps') <- NULL
names(FebpossumCH) <- 1980:1988
sessionlabels(FebpossumCH) <- 1980:1988
}
Run the code above in your browser using DataLab