assignParentIDs: Assign momID and dadID based on family mapping

View source: R/readPedigree.R

assignParentIDsR Documentation

Assign momID and dadID based on family mapping

Description

This function assigns mother and father IDs to individuals in the data frame based on the mapping of family IDs to parent IDs.

Usage

assignParentIDs(df_temp, family_to_parents, datasource)

Arguments

df_temp

A data frame containing individual information.

family_to_parents

A list mapping family IDs to parent IDs.

datasource

A string indicating the data source. Options are "gedcom" and "wiki".

Value

A data frame with added momID and dad_ID columns.


R-Computing-Lab/BGMisc documentation built on April 3, 2025, 3:12 p.m.