newMegaPop {AlphaSimR}R Documentation

Create new Mega Population

Description

Creates a new MegaPop-class from one or more Pop-class and/or MegaPop-class objects.

Usage

newMegaPop(...)

Arguments

...

one or more Pop-class and/or MegaPop-class objects.

Value

Returns an object of MegaPop-class

Examples

#Create founder haplotypes
founderPop = quickHaplo(nInd=2, nChr=1, segSites=10)

#Set simulation parameters
SP = SimParam$new(founderPop)
SP$addTraitA(10)

#Create population
pop = newPop(founderPop, simParam=SP)
megaPop = newMegaPop(pop=pop)
isMegaPop(megaPop)


[Package AlphaSimR version 1.3.2 Index]