Learn R Programming

AlphaSimR (version 1.4.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, ...)

isMegaPop(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(MegaPop): Combine multiple MegaPops

Functions

  • isMegaPop(): Test if object is of a MegaPop class

Slots

pops

list of Pop-class and/or MegaPop-class