[R] Date formats

David Winsemius dwinsemius at comcast.net
Tue Jun 19 16:50:54 CEST 2012


On Jun 19, 2012, at 8:00 AM, Data Analytics Corp. 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?

?strptime    # has the format specs that you can use with ...
?as.Date


-- 
David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list