View source: R/Population_getters.R
getComponents | R Documentation |
Get pedigree and phenotypic data from current population.
getComponents(pop)
pop |
a |
Retrieves the pedigree and phenotypic data components from all individuals in the current population.
Returns a data.frame
giving the individual's ID,
the ID of the sire, the ID of the dam, the additive, epistatic and
environmental components of the phenotype and the overall
phenotypic value.
Dion Detterer, Paul Kwan, Cedric Gondro
Population
, addEffects
,
attachEpiNet
# Construct a population with additive and epistatic effects pop <- Population( popSize = 200, map = map100snp, QTL = 20, alleleFrequencies = runif(100), broadH2 = 0.9, narrowh2 = 0.6, traitVar = 40 ) pop <- addEffects(pop) pop <- attachEpiNet(pop) # Retrieve phenotypic components from population components <- getComponents(pop)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.