Skip to contents

A wrapper for accessing the pheno slot

Usage

pheno(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)
pheno(pop)
#>            Trait1
#>  [1,] -0.40032639
#>  [2,] -0.32371496
#>  [3,]  1.09400264
#>  [4,]  2.07157819
#>  [5,] -0.01490714
#>  [6,]  1.15625432
#>  [7,] -1.40249003
#>  [8,] -0.55137963
#>  [9,] -0.49174528
#> [10,]  0.47708059