Learn R Programming

AlphaSimR (version 1.6.0)

MultiPop-class: Multi-Population

Description

The mega-population represents a population of populations. It is designed to behave like a list of populations.

Usage

# S4 method for MultiPop
[(x, i)

# S4 method for MultiPop [[(x, i)

# S4 method for MultiPop c(x, ...)

# S4 method for MultiPop length(x)

isMultiPop(x)

Arguments

x

a 'MultiPop' object

i

index of populations or mega-populations

...

additional 'MultiPop' or 'Pop' objects

Methods (by generic)

  • [: Extract MultiPop by index

  • [[: Extract Pop by index

  • c(MultiPop): Combine multiple MultiPops

  • length(MultiPop): Number of pops in MultiPop

Functions

  • isMultiPop(): Test if object is of a MultiPop class

Slots

pops

list of Pop-class and/or MultiPop-class