Level 5

Below are the birth dates and death dates of some people. How many days did they live in total?

Hint 1

R can easily calculate with dates. The lubridate package and the base functionality for dates are both fine.




Data

person birth death a 1955-07-12 2009-12-23 b 1935-09-02 1999-02-21 c 1977-03-27 1997-08-15 d 1954-06-04 2011-11-18 e 1929-01-14 1986-05-26