print.Population {epinetr}R Documentation

Print function for population.

Description

Print a summary of the population object.

Usage

## S3 method for class 'Population'
print(x, ...)

Arguments

x

a valid Population object

...

additional parameters (ignored)

Details

This is an S3 method for printing a summary of a Population object. Displayed are the initial parameters for the population (i.e. population size, phenotypic variance, broad-sense heritability, narrow-sense heritability and the SNPs used as QTLs), followed by any current additive and epistatic variance in the population.

Author(s)

Dion Detterer, Paul Kwan, Cedric Gondro

See Also

Population, addEffects, attachEpiNet, runSim

Examples

# Build a population
pop <- Population(
  popSize = 10, map = map100snp, QTL = 20,
  alleleFrequencies = runif(100), broadH2 = 0.9,
  narrowh2 = 0.5, traitVar = 40
)
pop <- addEffects(pop)
pop <- attachEpiNet(pop)

# Print the initial population
pop

# Run population in simulation
pop2 <- runSim(pop, generations = 50)

# Print the population following the simulation
pop2

[Package epinetr version 0.96 Index]