[r] Get the difference between dates in terms of weeks, months, quarters, and years