I have two data frames in R. One frame has a persons year of birth:
YEAR /1931 /1924
and then another column shows a more recent time.
I think this might be a bit more intuitive and requires no formatting or stripping:
as.numeric(as.Date("2002-02-02") - as.Date("1924-08-03")) / 365
gives output:
77.55342
Then you can use floor(), round(), or ceiling() to round to a whole number.