Re: [R] Need help in handling date

2010-07-07 Thread Gabor Grothendieck
On Wed, Jul 7, 2010 at 8:40 AM, Christofer Bogaso wrote: > Dear all, I have a date related question. Suppose I have a character string > "March-2009", how I can convert it to a valid date object like > as.yearmon("2009-01-03") in the zoo package? Is there any possibility there? Try this. The fir

Re: [R] Need help in handling date

2010-07-07 Thread Marc Schwartz
On Jul 7, 2010, at 7:40 AM, Christofer Bogaso wrote: > Dear all, I have a date related question. Suppose I have a character string > "March-2009", how I can convert it to a valid date object like > as.yearmon("2009-01-03") in the zoo package? Is there any possibility there? > > Ans secondly is th

Re: [R] Need help in handling date

2010-07-07 Thread Whit Armstrong
?strptime ‘%B’ Full month name in the current locale. (Also matches abbreviated name on input.) On Wed, Jul 7, 2010 at 8:40 AM, Christofer Bogaso wrote: > Dear all, I have a date related question. Suppose I have a character string > "March-2009", how I can convert it to a valid date

[R] Need help in handling date

2010-07-07 Thread Christofer Bogaso
Dear all, I have a date related question. Suppose I have a character string "March-2009", how I can convert it to a valid date object like as.yearmon("2009-01-03") in the zoo package? Is there any possibility there? Ans secondly is there any R function which will give the names of of all months as