Re: [R] Split data frame by date (POSIXlt)

2011-08-25 Thread MacQueen, Don
I suspect, but have not tested, that your src$date element has class POSIXlt, which is internally a list, in which case splitting by it might not work properly, and might be the cause of your out of bounds error message. One of these might do the job: src$date -

[R] Split data frame by date (POSIXlt)

2011-08-24 Thread Franc Lucas
Hello everyone, I want to split a data.frame by the column date . The data frame looks like this date time openclose 02.01.201109:00:00 1000 1200 02.01.201109:05:02 1200 1203 ... 01.02.2011

Re: [R] Split data frame by date (POSIXlt)

2011-08-24 Thread Jean V Adams
You could try using the numeric representation of date, and split the data frame using that variable. For example: src$date.num - as.numeric(src$date) Jean Franc Lucas wrote on 08/24/2011 02:42:58 PM: Hello everyone, I want to split a data.frame by the column date . The data frame