Re: [R] Possible bug in 'data.table'

2013-05-15 Thread Manta
As somebody else replied (but for some reason did not get through it) the solution to this is to convert the variable TIME3 from POSIXlt to POSIXct. It works like a charm. Nevertheless, there is a bug in that R should give me a warning/error message, and not simply crash. I reported the bug to the

Re: [R] Possible bug in 'data.table'

2013-05-14 Thread Ben Bolker
Manta libero.it> writes: > > Dear R users, > > I may have found a bug in the function 'data.table'. I have a similar > question as the one in this post: > > http://stackoverflow.com/questions/3367190/ aggregate-and-weighted-mean-in-r > [snip] > While I run the command > > temp[,list(we

[R] Possible bug in 'data.table'

2013-05-14 Thread Manta
Dear R users, I may have found a bug in the function 'data.table'. I have a similar question as the one in this post: http://stackoverflow.com/questions/3367190/aggregate-and-weighted-mean-in-r I have a dataset with assets, quantity traded, date and time. I would like to calculate the value weig