[R] Clarification about data/weekday conversion
t.k. t.k.
tk9830 at gmail.com
Wed Jun 3 00:31:07 CEST 2015
Hi everyone
This is a general question.
I have imported a "Dates" variable as character. I used the "as.Date"
command and convert it to Date,format..
I want to change the display of the date to weekday (e.g., I want my time
series to be instead of 15-04-2010 as Friday-04-2010). I used the "format"
command but the variable reverts back to character. Is there a way to
change the day to weekday and my variable remain a "Date,format..."
variable?
these are the two lines I used as code
Hpc$Date1<- as.Date(Hpc$Date, "%d/%m/%Y")
Hpc$Date1<-format(Hpc$Date1, "%a %b %d %Y")
thanks in advance
[[alternative HTML version deleted]]
More information about the R-help
mailing list