data cleaning

Day 6: Lubridate

Working with times ⏳ and dates 📅 is tricky for all kinds of reasons, not least of which because dates are fundamentally absurd. A year isn’t a perfect multiple of days, so a solar calendar needs leap years and other corrections. The year doesn’t divide easily into 12 months – or frankly any other useful number either – so months have a variable number of days and doing “addition” with months is really weird.