add_gen: Adds a generation of offspring with random allocation of...

Description Usage Arguments Value

Description

The function makes calls to the blup function for calculating the EBV, and the a_mat function for calculating the inbreeding coefficient from its leading diagonal.

Usage

1
add_gen(ddf, hh)

Arguments

ddf

A data frame with the 9 columns as generated by new_pop

hh

Heritability of the trait in the data frame

Value

An data frame of the same form as the input but extended by a number of offspring deteremined by noff. If noff has unequal numbers of offspring from male and female parents, or gives numbers of offspring are not even, or the heritability is out of bounds then errors are printed and the input data frame is returned unchanged.


jwoollia/DenHaag documentation built on May 20, 2019, 6:27 a.m.