Learn R Programming

AlphaSimR (version 1.2)

MegaPop-class: Mega-Population

Description

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

Usage

# S4 method for MegaPop
[(x, i)

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

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

Arguments

x

a 'MegaPop' object

i

index of populations or mega-populations

...

additional 'MegaPop' or 'Pop' objects

Methods (by generic)

  • [: Extract MegaPop by index

  • [[: Extract Pop by index

  • c: Combine multiple MegaPops

Slots

pops

list of Pop-class and/or MegaPop-class