
Last chance! 50% off unlimited learning
Sale ends in
## S3 method for class 'default':
clone(object, type, ...)
## S3 method for class 'popn':
clone(object, type, ...)
object
but with varying number of
rows. For clone.popn
an attribute `freq' is set, a vector of
length equal to the original number of rows giving the number of repeats
(including zeros).
If popn
is a multi-session population the returned value will be
a multi-session population of the same length.lambda
for Poisson,
size, prob
or size, mu
for negative binomial.
One application is to derive a population of cues from a popn object,
where each animal in the original popn generates a number of cues from
the same point.sim.popn
## population of animals at 1 / hectare generates random
## Poisson number of cues, lambda = 5
mics4 <- make.grid( nx = 2, ny = 2, spacing = 44, detector = "signal")
pop <- sim.popn (D = 1, core = mics4, buffer = 300, nsession = 66)
pop <- clone (pop, "poisson", 5)
attr(pop[[1]],"freq")
Run the code above in your browser using DataLab