Learn R Programming

secr (version 4.6.10)

summary.popn: Summarise Simulated Population

Description

Concise summary of a popn object.

Usage

# S3 method for popn
summary(object, collapse = FALSE, ...)
# S3 method for summary.popn
print(x, ...)

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').

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.

See Also

sim.popn

Examples

Run this code


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)

Run the code above in your browser using DataLab