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 -
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
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
3 matches
Mail list logo