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)

#Create population
pop = newPop(founderPop, simParam=SP)
pheno(pop)
#>           Trait1
#>  [1,] -2.5886233
#>  [2,]  1.1711449
#>  [3,] -0.4471662
#>  [4,]  1.9741392
#>  [5,]  3.2855640
#>  [6,] -1.9276606
#>  [7,] -3.2441866
#>  [8,] -0.8295680
#>  [9,] -0.0417033
#> [10,] -0.4507638