summary.popn: Summarise Simulated Population

Description Usage Arguments Details Value See Also Examples

View source: R/methods.R

Description

Concise summary of a popn object.

Usage

1
2
3
4
## S3 method for class 'popn'
summary(object, collapse = FALSE, ...)
## S3 method for class 'summary.popn'
print(x, ...)

Arguments

object

popn object

collapse

logical; if TRUE multi-session popn objects are treated as a single open population

x

summary.popn object

...

other arguments (not used)

Details

By default each component of a multisession object is summarised separately. If collapse = TRUE then turnover and movements are collated across sessions, matching individuals by rownames.

Value

For summary.popn, an object of class ‘summary.popn’ with various components. For a multisession object and collapse = TRUE the descriptors include the numbers of new individuals (recruits) and lost individuals (deaths), and matrices showing the status of each animal in each session (‘status’ codes 0 not recruited yet; 1 alive; -1 dead) and movement from previous session if alive then (‘movements’).

See Also

sim.popn

Examples

1
2
3
4
5
grid <- make.grid(8,8)
turnover <- list(phi = 0.8, lambda = 1)
pop <- sim.popn(Nbuffer = 200, core = grid, buffer = 200, Ndist = 'fixed', 
    nsessions = 5, details = turnover)
summary(pop, collapse = TRUE)

secr documentation built on Oct. 18, 2021, 9:06 a.m.