powered by
Given a list of ped objects (called pedigree components), and a vector of ID labels, find the index of the component holding each individual.
ped
getComponent(x, ids, checkUnique = FALSE)
A list of ped objects
A vector of ID labels (coercible to character)
If TRUE an error is raised if any element of ids occurs more than once in x.
ids
x
An integer vector of the same length as ids, with NA entries where the corresponding label was not found in any of the components.
# NOT RUN { x = list(nuclearPed(1), singleton(id = "A")) getComponent(x, c(3, "A")) # = c(1, 2) # }
Run the code above in your browser using DataLab