
Last chance! 50% off unlimited learning
Sale ends in
snip(object, from = 0, by = 1000, length.out = NULL, keep.incomplete = TRUE)
keep.incomplete == FALSE
animals and detections from thelength.out
is specified, by
will be computed as
(transectlength(object) - from) / length.out
.transectlength
x <- seq(0, 4*pi, length = 41)
temptrans <- make.transect(x = x*100, y = sin(x)*300, )
plot (snip(temptrans, by = 200), markvertices = 1)
## simulate some captures
tempcapt <- sim.capthist(temptrans, popn = list(D = 2,
buffer = 300), detectpar = list(g0 = 0.5, sigma = 50),
binomN = 0)
## snip capture histories
tempCH <- snip(tempcapt, by = 20)
## collapse from 'transect' to 'multi', discarding location within transects
tempCH <- reduce(tempCH, outputdetector = "count")
## fit secr model and examine H-T estimates of density
derived(secr.fit(tempCH, buffer = 300, CL = TRUE, trace = FALSE))
## also, may split an existing transect into equal lengths
## same result:
plot(snip(temptrans, by = transectlength(temptrans)/10),
markvertices = 1)
plot(snip(temptrans, length.out = 10), markvertices = 1)
Run the code above in your browser using DataLab