Learn R Programming

nprcgenekeepr (version 1.0.8)

getCurrentAge: Age in years using the provided birthdate.

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