[R] Need help in handling date

Whit Armstrong armstrong.whit at gmail.com
Wed Jul 7 14:44:39 CEST 2010


?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
<bogaso.christofer at gmail.com> 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 there any R function which will give the names of of all
> months as "LETTERS" does?
>
> Thanks for your time.
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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