Learn R Programming

nprcgenekeepr (version 2.0.0)

getCurrentAge: Calculate current age in years from a birth date

Description

Assumes current date for calculating age.

Usage

getCurrentAge(birth)

Value

Age in years using the provided birthdate.

Arguments

birth

birth date(s)

Examples

Run this code
library(nprcgenekeepr)
age <- getCurrentAge(birth = as.Date("06/02/2000", format = "%m/%d/%Y"))

Run the code above in your browser using DataLab