Learn R Programming

nprcgenekeepr (version 1.0.5)

getCurrentAge: Age in years using the provided birthdate.

Description

Assumes current date for calculating age.

Usage

getCurrentAge(birth)

Arguments

birth

birth date(s)

Value

Age in years using the provided birthdate.

Examples

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

# }

Run the code above in your browser using DataLab