Get the parents of individuals.
Usage
# S4 method for class 'character_OR_integer'
parent_of(obj, dadid, momid, id2)
# S4 method for class 'Ped'
parent_of(obj, id2)
# S4 method for class 'Pedigree'
parent_of(obj, id2)
Arguments
- obj
A character vector with the id of the individuals or a
data.frame
with all the informations in corresponding columns.- dadid
A vector containing for each subject, the identifiers of the biologicals fathers.
- momid
A vector containing for each subject, the identifiers of the biologicals mothers.
- id2
A vector of individuals identifiers to get the parents from