Learn R Programming

epinetr (version 0.96)

print.Population: Print function for population.

Description

Print a summary of the population object.

Usage

# S3 method for 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.

See Also

Population, addEffects, attachEpiNet, runSim

Examples

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

Run the code above in your browser using DataLab