Learn R Programming

epinetr (version 0.96)

getComponents: Get phenotypic components.

Description

Get pedigree and phenotypic data from current population.

Usage

getComponents(pop)

Arguments

pop

a Population object

Value

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.

Details

Retrieves the pedigree and phenotypic data components from all individuals in the current population.

See Also

Population, addEffects, attachEpiNet

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab