R adding days to a date

date, datetime, r

Solution

Use +

> as.Date("2001-01-01") + 45
[1] "2001-02-15"

Problem

I have a date that I would like to add days to in order to find some future date. for instance how would I find the date that is 45 days after 1/1/2001?

Original source

Related problems