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
Thank you all for taking your time and looking at this problem. Yes, date handling is a problem with many languages. I have resolved the rbind not being able to handle different data formats in a column for this specific problem by making the data format a character and later convert back to

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 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