guess_age_from_famg_events: Guess an individual's age from their family group events

View source: R/guess_age.R

guess_age_from_famg_eventsR Documentation

Guess an individual's age from their family group events

Description

This function takes an individual's family group events and calculates an estimated age based on the date of the event and their age when the event occurred.

Usage

guess_age_from_famg_events(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.