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 All, I usually work with time

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

2013-11-11 Thread Alemu Tadesse
-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 differences automatically - at least for me. I have to specifically tell R

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

2013-11-09 Thread Carl Witthoft
commented, minimal, self-contained, reproducible code. -- View this message in context: http://r.789695.n4.nabble.com/Date-handling-in-R-is-hard-to-understand-tp4680070p4680125.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

[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

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 alemu.tade...@gmail.com 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

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