Learn R Programming

MicSim (version 2.0.1)

getAgeInDays: 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)

Value

Correct age at the specific date currDate in days

Arguments

currDate

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

birthDate

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

Author

Sabine Zinn

Examples

Run this code
getAgeInDays("20200826", "19800605")

Run the code above in your browser using DataLab