Convert the age of an individual in years to the corresponding age in days, by multiplying with 365.25 and rounding to the nearest integer.

get_age_in_days(age_years)

Arguments

age_years

A numeric vector, representing the age of an individual in years.

Value

A numeric vector representing the age of the individual in days.

Author

Charlotte Soneson

Examples

get_age_in_days(2)
#> [1] 730