calculate_age: Determine people's age

Description Usage Arguments Details Value Examples

View source: R/calculate_age.R

Description

Finds out the calendar year difference between two dates.

Usage

1
calculate_age(givendate, birthdate)

Arguments

givendate, birthdate

POSIXt, Date or character vectors of equal length.

Details

For birthdate > givendate NAs are returned .

Value

An integer vector of the same length as givendate.

Examples

1
calculate_age(Sys.Date(), "1988-02-29")

GuillermoNasarre/limpyr documentation built on Dec. 17, 2021, 10:25 p.m.