View source: R/check.parents.R
| check.parents | R Documentation |
Internal function to check the relatedness between two individuals
check.parents(
population,
info.father,
info.mother,
max.rel = 2,
avoid.mating.parent = FALSE,
still.check = FALSE
)
population |
Population list |
info.father |
position of the first parent in the dataset |
info.mother |
position of the second parent in the dataset |
max.rel |
maximal allowed relationship (default: 2, alt: 1 no full-sibs, 0 no half-sibs) |
avoid.mating.parent |
Set to TRUE to avoid matings of an individual to its parents |
still.check |
Internal parameter (avoid.mating.parent check) |
logical with TRUE if relatedness does not exceed max.rel / FALSE otherwise.
data(ex_pop)
check.parents(ex_pop, info.father=c(4,1,1,1), info.mother=c(4,2,1,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.