assignParentIDs {BGmisc} | R Documentation |
This function assigns mother and father IDs to individuals in the data frame based on the mapping of family IDs to parent IDs.
assignParentIDs(df_temp, family_to_parents)
df_temp |
A data frame containing individual information. |
family_to_parents |
A list mapping family IDs to parent IDs. |
A data frame with added momID and dad_ID columns.