SimParam_new {AlphaSimR}R Documentation

Create new simulation

Description

Starts the process of building a new simulation by creating a new SimParam object and assigning a founder population to the class. It is recommended that you save the object with the name "SP", because subsequent functions will check your global enviroment for an object of this name if their simParam arguments are NULL. This allows you to call these functions without explicitly supplying a simParam argument with every call.

Arguments

founderPop

an object of MapPop-class

Usage

SimParam$new(founderPop)

Examples

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

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


[Package AlphaSimR version 0.10.0 Index]