findOldest: This function finds the oldest families in a pedigree. It is...

View source: R/summarizePedigree.R

findOldestR Documentation

This function finds the oldest families in a pedigree. It is supposed to be used internally by the summarize_pedigree function.

Description

This function finds the oldest families in a pedigree. It is supposed to be used internally by the summarize_pedigree function.

Usage

findOldest(foo_summary_dt, byr, n_oldest, n_foo)

Arguments

foo_summary_dt

A data.table containing the summary statistics.

byr

Character. Optional column name for birth year. Used to determine the oldest lineages.

n_oldest

Integer. Number of oldest lineages to return (sorted by birth year).

n_foo

An integer specifying the number of individuals in the summary.

Value

a data.table containing the oldest families in the pedigree.


BGmisc documentation built on Aug. 8, 2025, 7:20 p.m.