Last chance! 50% off unlimited learning
Sale ends in
Internal function to check the relatedness between two individuals
check.parents(population, info.father, info.mother, max.rel = 2)
Population list
position of the first parent in the dataset
position of the second parent in the dataset
maximal allowed relationship (default: 2, alt: 1 no full-sibs, 0 no half-sibs)
logical with TRUE if relatedness does not excced max.rel / FALSE otherwise.
# NOT RUN {
data(ex_pop)
check.parents(ex_pop, info.father=c(4,1,1,1), info.mother=c(4,2,1,1))
# }
Run the code above in your browser using DataLab