assignCoupleIDs: Assign Couple IDs

View source: R/helpPedigree.R

assignCoupleIDsR Documentation

Assign Couple IDs

Description

This subfunction assigns a unique couple ID to each mated pair in the generation. Unmated individuals are assigned NA for their couple ID.

Usage

assignCoupleIDs(df_Ngen)

assignCoupleIds(df_Ngen)

Arguments

df_Ngen

The dataframe for the current generation, including columns for individual IDs and spouse IDs.

Value

The input dataframe augmented with a 'coupleId' column, where each mated pair has a unique identifier.


R-Computing-Lab/BGMisc documentation built on July 16, 2025, 9:09 p.m.