guess_age: Guess an individual's age

View source: R/guess_age.R

guess_ageR Documentation

Guess an individual's age

Description

This function calculates an age for an individual based on their individual or family facts. It calculates age based on the date of the fact and their age when the fact applied.

Usage

guess_age(tg, xref, agg_fn = mean)

Arguments

tg

A tidyged object.

xref

The xref of an individual.

agg_fn

If multiple ages are calculated, the function to use to aggregate them.

Value

A numeric value giving the estimated age. A numeric value less than zero means no determination could be made.


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