[R] sum with dates

Rolf Turner rolf.turner at xtra.co.nz
Tue Dec 13 06:39:47 CET 2011


On 13/12/11 15:39, Ana wrote:
> How do I sum 15 years to my dataset?

You mean ``How do I ***add*** 15 years ....''

See the thread starting at

     
http://r.789695.n4.nabble.com/Adding-a-year-to-existing-date-tp4078930p4078930.html

     cheers,

         Rolf Turner
> original dataset
>           dates        val
> 1    2001-01-12    1.2
> 2    2001-02-12    1.2
> 3    2001-03-12    1.2
>
> result
>           dates        val
> 1    2016-01-12    1.2
> 2    2016-02-12    1.2
> 3    2016-03-12    1.2
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list