Re: [R] Date handling in R is hard to understand

2013-11-11 Thread Alemu Tadesse
M > > To: r-help@r-project.org > > Subject: [R] Date handling in R is hard to understand > > > > Dear All, > > > > I usually work with time series data. The data may come in AM/PM date > > format or on 24 hour time basis. R can not recognize the two > >

Re: [R] Date handling in R is hard to understand

2013-11-11 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Alemu Tadesse > Sent: Friday, November 08, 2013 8:41 PM > To: r-help@r-project.org > Subject: [R] Date handling in R is hard to understand > > Dear

Re: [R] Date handling in R is hard to understand

2013-11-09 Thread Carl Witthoft
I agree w/ lubridate.I also would like to mention that "date handling" is amazingly difficult in ALL computer languages, not just R. Take a stroll through sites like thedailywtf.com to see how quickly people get into tarpits full of thorns when trying to deal with leap years, weeks vs month

Re: [R] Date handling in R is hard to understand

2013-11-08 Thread Jim Lemon
Hi Mihretu, Can you grep for "AM" or "PM"? If so build your format string depending upon whether one of these exists in the date string. Jim On 11/09/2013 06:41 AM, Alemu Tadesse wrote: Dear All, I usually work with time series data. The data may come in AM/PM date format or on 24 hour time

Re: [R] Date handling in R is hard to understand

2013-11-08 Thread Bert Gunter
Have a look at the "lubridate" package. It claims to try to make dealing with dates easier. -- Bert On Fri, Nov 8, 2013 at 11:41 AM, Alemu Tadesse wrote: > Dear All, > > I usually work with time series data. The data may come in AM/PM date > format or on 24 hour time basis. R can not recognize

[R] Date handling in R is hard to understand

2013-11-08 Thread Alemu Tadesse
Dear All, I usually work with time series data. The data may come in AM/PM date format or on 24 hour time basis. R can not recognize the two differences automatically - at least for me. I have to specifically tell R in which time format the data is. It seems that Pandas knows how to handle date wi