powered by
Code from Dirk Eddelbuettel via Stackoverflow (https://stackoverflow.com/a/15569373/1844418)
difftime_years(t2, t1)
numeric. t2 - t1 [years]
end time of the interval. Will be coerced to Date
starting time of the interval. Will be coerced to Date
Andreas Leha
difftime_years("2003-04-05", "2001-01-01")
Run the code above in your browser using DataLab