add_ancestors: Add ancestor records for an individual

View source: R/utils.R

add_ancestorsR Documentation

Add ancestor records for an individual

Description

This function adds placeholder Individual records for ancestors going back a specific number of generations.

Usage

add_ancestors(tg, xref, num_gen, inc_sex = TRUE)

Arguments

tg

A tidyged object.

xref

The xref of an Individual record to add ancestors for.

num_gen

The number of generations to create ancestors for.

inc_sex

Whether to populate the sex of the ancestors. This will ensure that there is one male and one female parent. Otherwise the sex will be assigned as "U" (undetermined).

Details

This function may also create Family Group records and will not modify existing ancestors.

Value

A tidyged object with additional ancestor records.


jl5000/tidyged.utils documentation built on June 26, 2022, 4:40 p.m.