Let's say we want to move a given date a numof months. We can define the following function, that uses the mondate package:
moveNumOfMonths <- function(date, num) {
as.Date(mondate(date) + num)
}
It moves consistently the month part of the date and adjusting the day, in case the date re...