On Dec 13, 2011, at 3:43 AM, Ana wrote:

Thanks people!

another question, is there something similar to sort for dates?

sort(x, decreasing = FALSE, ...)

So what makes you even suspect that there wasn't a sort method for dates?

--
David.


On Tue, Dec 13, 2011 at 8:34 AM, Jorge I Velez <jorgeivanve...@gmail.com > wrote:
Hi Ana,

Check section 4 of http://www.jstatsoft.org/v40/i03/paper for more
alternatives.

HTH,
Jorge.-


On Mon, Dec 12, 2011 at 9:39 PM, Ana <> wrote:

How do I sum 15 years to my dataset?

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@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.



______________________________________________
R-help@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.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT

______________________________________________
R-help@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.

Reply via email to