age_now: Determine the age of an individual now given their age on a...

View source: R/guess_age.R

age_nowR Documentation

Determine the age of an individual now given their age on a previous date

Description

Determine the age of an individual now given their age on a previous date

Usage

age_now(date_of_fact, age_at_fact, minimise = TRUE)

Arguments

date_of_fact

A date string from the tidyged object.

age_at_fact

An age at event string from the tidyged object.

minimise

If date ranges or periods are used in the date, whether to choose the bounds which assume the minimum age. If this is FALSE, the maximum age is assumed.

Value

A numeric value giving the current age in years. 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.