View source: R/assignAlleles.R
assignAlleles | R Documentation |
Assign parent alleles randomly
assignAlleles(alleles, parentType, parent, id, n)
alleles |
a list with a list |
parentType |
character vector of length one with value of
|
parent |
either |
id |
character vector of length one containing the animal ID |
n |
integer indicating the number of iterations to simulate. Default is 5000. |
The original list alleles
passed into the function with newly
randomly assigned alleles to each id
based on dam and sire genotypes.
alleles <- list(alleles = list(), counter = 1)
alleles <- assignAlleles(alleles, parentType = "sire", parent = NA,
id = "o1", n = 4)
alleles
alleles <- assignAlleles(alleles, parentType = "dam", parent = NA,
id = "o1", n = 4)
alleles
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.