Tag: NA when adding month in R

  • How to add or subtract months from a date in R

    How to add or subtract months from a date in R

    If you want to add or subtract months from a date in R, it might sound simple, but some situations are worth considering. Even though the lubridate package has function months that you can use to subtract months, you might get NA in the result. That is usually the case with the last dates of…