get.age: Evaluates age difference between dates

View source: R/get_age.R

get.ageR Documentation

Evaluates age difference between dates

Description

Given the date of birth and the date of visit, along with their format, it evaluates the subject's age at visit

Usage

get.age(born, visit, format.born = "%m/%d/%Y", format.visit = "%m/%d/%Y")

Arguments

born

date of birth (character)

visit

date of visit (character)

format.born

date of birth format

format.visit

date of visit format

Value

age at visit

Author(s)

Alessia Visconti

Examples

get.age("01/01/1980", "31/12/2019", "%d/%m/%Y", "%d/%m/%Y")

alesssia/timesaveR documentation built on Jan. 26, 2024, 5:21 p.m.