Skip to contents

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, noldest, 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.

noldest

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.