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,] -3.51116610
#> [2,] -0.73397633
#> [3,] 1.01535686
#> [4,] 1.97838841
#> [5,] 0.11534796
#> [6,] -1.02702029
#> [7,] 0.20199422
#> [8,] 0.11105682
#> [9,] -0.68999237
#> [10,] -0.04974391