powered by
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 )
logical with TRUE if relatedness does not exceed max.rel / FALSE otherwise.
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)
Set to TRUE to avoid matings of an individual to its parents
Internal parameter (avoid.mating.parent check)
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