MultiPop-class: Multi-Population

MultiPop-classR Documentation

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 signature 'MultiPop'
x[i]

## S4 method for signature 'MultiPop'
x[[i]]

## S4 method for signature 'MultiPop'
c(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

Functions

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

Slots

pops

list of Pop-class and/or MultiPop-class


AlphaSimR documentation built on Nov. 2, 2023, 6:01 p.m.