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

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).

Value

A tidyged object with additional ancestor records.

Details

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