Skip to contents

Get various age values for all three age types

Usage

get_age_values(age_value, age_type = c("D", "M", "Y"))

Arguments

age_value

An integer value for the age

age_type

The age type of the specified age value. Can be either "D" for day, "M" for month, or "Y" for year.

Value

A named list of age values in days, months, and years.

Examples

get_age_values(1, "Y")
#> $days
#> [1] 365.25
#> 
#> $months
#> [1] 12
#> 
#> $years
#> [1] 1
#>