varG {AlphaSimR} | R Documentation |
Returns total genetic variance for all traits
varG(pop)
pop |
an object of |
#Create founder haplotypes founderPop = quickHaplo(nInd=10, nChr=1, segSites=10) #Set simulation parameters SP = SimParam$new(founderPop) SP$addTraitA(10) SP$setVarE(h2=0.5) #Create population pop = newPop(founderPop, simParam=SP) varG(pop)