A wrapper for accessing the pheno slot
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)
#Create population
pop = newPop(founderPop, simParam=SP)
pheno(pop)
#> Trait1
#> [1,] -0.02977125
#> [2,] 0.17942181
#> [3,] -0.71330296
#> [4,] 0.07089157
#> [5,] 1.24749789
#> [6,] -0.12341573
#> [7,] 0.49014641
#> [8,] 1.50465975
#> [9,] 1.92304049
#> [10,] -2.00798253