How to add and subtract Dates and Times in R
Introduction Following the R recipe How to deal with Date and Time in R where we reviewed the base R capabilities to deal with dates and times, we continue exploring how to add and subtract dates and times, also in base R. I plan to cover lubridate and clock packages in the future. Addition of a scalar to a date It’s very common that we need to calculate an end date for a process or service knowing only the starting date and the duration.