Learn R Programming

DSsim (version 1.1.4)

generate.population: S4 generic method to generate an instance of a population

Description

Uses the population description and detectability details to generate an instance of the population. Note that if the first argument supplied is of class Population.Description rather than class Simulation then a second argument detectabity must also be supplied and must be an object of class Detectability.

Usage

generate.population(object, ...)

# S4 method for Population.Description generate.population(object, detectability, region.obj = NULL)

# S4 method for Simulation generate.population(object, ...)

Arguments

object

an object of class Simulation or Population.Description

...

when this is called on an object of class Population.Description the additional arguments detectability and region.obj should also be supplied

detectability

object of class Detectability (optional - only required if object is of class Population.Description)

region.obj

the region object for the population (optional - only required if object is of class Population.Description)

Value

an object of class Population