Skip to contents

A wrapper for accessing the gv slot

Usage

gv(pop)

Arguments

pop

a Pop-class or similar object

Examples

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

#Set simulation parameters
SP = SimParam$new(founderPop)
SP$addTraitAD(10, meanDD=0.5)
SP$setVarE(h2=0.5)
SP$nThreads = 1L

#Create population
pop = newPop(founderPop, simParam=SP)
gv(pop)
#>           Trait1
#>  [1,]  2.1882732
#>  [2,] -0.8916870
#>  [3,] -0.1703379
#>  [4,] -1.7612525
#>  [5,]  0.9621696
#>  [6,]  0.3919897
#>  [7,] -0.8642914
#>  [8,] -0.2722408
#>  [9,] -0.3537101
#> [10,]  0.7710872