nInd: Number of individuals

View source: R/popSummary.R

nIndR Documentation

Number of individuals

Description

A wrapper for accessing the nInd slot

Usage

nInd(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)
nInd(pop)


AlphaSimR documentation built on Nov. 2, 2023, 6:01 p.m.