Description Usage Arguments Value
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.
1 | add_gen(ddf, hh)
|
ddf |
A data frame with the 9 columns as generated by new_pop |
hh |
Heritability of the trait in the data frame |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.