[R] Date formats

Miguel Manese jjonphl at gmail.com
Tue Jun 19 16:53:46 CEST 2012


Hi Walt,

as.Date("01OCT1928", "%d%b%Y") works for me. See also ?strftime

Regards,

Jon


On Tue, Jun 19, 2012 at 8:00 PM, Data Analytics Corp.
<walt at dataanalyticscorp.com> wrote:
> Hi,
>
> I imported an excel table (using read.csv) of Dow Jones monthly average
> closings where the first variable is a date as a character string such as
> "01OCT1928".  How do I convert this to a date variable so I can plot monthly
> average closings against date using ggplot2?
>
> Thanks,
>
> Walt
>
> ________________________
>
> Walter R. Paczkowski, Ph.D.
> Data Analytics Corp.
> 44 Hamilton Lane
> Plainsboro, NJ 08536
> ________________________
> (V) 609-936-8999
> (F) 609-936-3733
> walt at dataanalyticscorp.com
> www.dataanalyticscorp.com
>
> ______________________________________________
> 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