Re: [R] Month Difference

2012-09-07 Thread PIKAL Petr
To: r-help@r-project.org > Subject: [R] Month Difference > > Hi, > > i need a small help. > > a<- as.Date("2012-01-01") > b<- as.Date("2012-12-01") > > My requirement what is, i need to get the month diff

Re: [R] Month Difference

2012-09-07 Thread Akkara, Antony (GE Energy, Non-GE)
Yes. Its working fine. We need to convert to "as.Date" thatz all. Thank you Petr. -Original Message- From: PIKAL Petr [mailto:petr.pi...@precheza.cz] Sent: Friday, September 07, 2012 3:42 PM To: Akkara, Antony (GE Energy, Non-GE); r-help@r-project.org Subject: RE: [R] Month

Re: [R] Month Difference

2012-09-07 Thread Marc Girondot
Le 07/09/12 10:26, Rantony a écrit : Hi, i need a small help. a<- as.Date("2012-01-01") b<- as.Date("2012-12-01") My requirement what is, i need to get the month difference of these two dates. Can any one help me please ! Here is a solution from here: http

Re: [R] Month Difference

2012-09-07 Thread Berend Hasselman
On 07-09-2012, at 10:26, Rantony wrote: > Hi, > > i need a small help. > > a<- as.Date("2012-01-01") > b<- as.Date("2012-12-01") > > My requirement what is, i need to get the month difference of these two > dates. One way is: library(zoo) (as.yearmon(b)-

[R] Month Difference

2012-09-07 Thread Rantony
Hi, i need a small help. a<- as.Date("2012-01-01") b<- as.Date("2012-12-01") My requirement what is, i need to get the month difference of these two dates. Can any one help me please ! - Antony -- View this message in context: http://r.789695.n4.nabble.c