[R] problem of "local" ! :-(
suresh.ghalsasi at gmail.com
Mon Feb 16 22:05:57 CET 2009
Dear R- Experts,
Seek your help.
I created a time sequence using:
x[i] <-chron(dates, tt, format=c(dates="y-m-d", tt="h:m:s"))
first element in the list is displayed as: (09-01-01 00:00:00)
Now, I want to store this value as date.
If I use: format.Date(x,"%y-%m-%d %H:%M:%S"), I expect following value:
HOWEVER, the value displayed as: "09-01-01 01:00:00"
I want to create time sequence starting from 00:00:00 !!!
I realized that this is due to my "local" setting. I have GMT+1:00 setting.
However, I do not want my local settings to affect my time sequence.
Can someone please suggest me the solution?
I do not want to change my local settings before I start R. Because that is
View this message in context: http://www.nabble.com/problem-of-%22local%22-%21-%3A-%28-tp22045861p22045861.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help