sampleIndiv | R Documentation |
Sampling Individuals from a Pedigree.
sampleIndiv(Pedig, from="Born", each=100)
Pedig |
Pedigree with column |
from |
Column name. From each cohort specified in this column (e.g. year of birth), the number of individuals specified in parameter |
each |
Number of individuals to be sampled from each cohort. |
From each cohort, a specified number of individuals will be sampled. If a cohort contains less individuals, then all individuals are sampled. This may be needed for estimating population specific parameters from a subset of a large pedigree to reduce computation time.
Character vector containing the IDs of the individuals.
Robin Wellmann
data("PedigWithErrors")
set.seed(1)
Pedig <- prePed(PedigWithErrors)
use <- Pedig$Breed=="Hinterwaelder"
keep <- sampleIndiv(Pedig[use, ], from="Born", each=5)
keep
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.