getAgeInDays: Get from a given date the age in days

View source: R/auxFctMicSim.r

getAgeInDaysR Documentation

Get from a given date the age in days

Description

Function computes for a given date the correct age in days.

Usage

getAgeInDays(currDate, birthDate)

Arguments

currDate

Reference date given as string of the format "yyyymmdd".

birthDate

Birth date given as string of the format "yyyymmdd".

Value

Correct age at the specific date currDate in days

Author(s)

Sabine Zinn

Examples

getAgeInDays("20200826", "19800605")

MicSim documentation built on Jan. 9, 2023, 5:05 p.m.