On Fri, 7 Nov 2014, Arnaud Michel wrote:
Hello
Can one calculate the month number between two dates
D1 <- "01/01/2007" and D2 <- "01/04/2009" ?
Thank you
One way is through zoo's yearmon class:
R> library("zoo")
R> D1 <- as.yearmon("01/01/2007", format = "%d/%m/%Y")
R> D2 <- as.yearmon("01/0
Hello
Can one calculate the month number between two dates
D1 <- "01/01/2007" and D2 <- "01/04/2009" ?
Thank you
--
Michel ARNAUD
Cirad
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
2 matches
Mail list logo