Skip to content
Back to formatted view

Raw Message

Message-ID: <1353052598318-4649704.post@n4.nabble.com>
Date: 2012-11-16T07:56:38Z
From: PtitBleu
Subject: Creating dates to plot
In-Reply-To: <1353023180478-4649677.post@n4.nabble.com>

Hello Eric,

strptime("201206",format="%Y%m") gives NA (I don't know why but I'm a
newbie).

The only solution I found is to add "01" as a day to have a complete date
(Year Month Day):
x$Period<-as.Date(paste(x$Period,"01",sep=""),format="%Y%m%d")

Then you get a Date format you can use to plot graph.

I think you will get better solutions from advanced users.
Have a good day,
Ptit Bleu.



--
View this message in context: http://r.789695.n4.nabble.com/Creating-dates-to-plot-tp4649695p4649704.html
Sent from the R help mailing list archive at Nabble.com.