« first day (1513 days earlier)      last day (1662 days later) » 

10:44 AM
The OP asks for a general solution, but responds to all my hints with "yes, I know that already"
 
 
2 hours later…
12:32 PM
@Andrie I don't think it's too broad, it just looks for a general solution (he or she has my blessing).
How do we close "RTFM" questions again? stackoverflow.com/questions/27401007/…
 
@RomanLuštrik Just pick some reason and close. We will probably delete it anyways afterwords
 
@RomanLuštrik mod flag as "very low quality" too?
 
Make it so.
 
What on earth is going on here
 
12:53 PM
@DavidArenburg, what's wrong? Are you the down voter there?
 
Looking for a tool: stackoverflow.com/questions/27401401/… (and doesn't know data.table::fread() :-) )
 
@DirkEddelbuettel voted. Dint comment there (on fread), as it's not tagged [r].
 
@Arun Yes I am. Do you think the right method to order a data.table object is creating a copy and using some strange code such as dtbl_sorted <- dtbl[order(dtbl[[colVar]])]? What's the point of having data.table if you are using it as a data frame?
 
1:10 PM
David, it's not clear whether OP wants to keep the original data or not. Sometimes it might be necessary to retain the original data as well. As such there's nothing wrong with the answer. Besides DT[order(.)] is internally optimised to use data.table's fast ordering. Therefore only the extra copy makes it inefficient, the ordering itself will be fast.
I understand your point though. In most cases we wouldn't want to retain the original data as well, where setorder() would be way more efficient.
 
@DavidArenburg It's just my opinion, but your comments on that answer can be easily misinterpreted as somewhat aggressive. Polite suggestion that you tone down a little bit. It's far better to gently nudge somebody in the right direction than pointing out how stupid their own ideas are. Let's keep SO a friendly place, especially for relative newcomers.
 
@Andrie OK, point taken
 
:-)
@DavidArenburg And please reinstate your answer.
 
David, I don't think you need to delete your answer.
 
Ok, thanks for the guidance...
 
1:27 PM
Yup. And just gave the OP a hint to accept your answer already.
 
I can imagine Dirk using the Force to guide OP's hand to click the check mark.
7
 
I fear you may greatly overestimate my ever so meak powers.
 
2:00 PM
@RomanLuštrik Dirk Vader
2
 
 
1 hour later…
3:08 PM
@Spacedman Nice. As a parent to two daughters, I can now spend the rest of the movie looking for my son...
 
Ooh that R-as-an-app company have poked their head above the R-dev ramparts...
or is that where you saw it before mentioning it here?
 
No, I only came across it via their post. Following Brian's (very good) email (and earlier emails in the thread) seems to have got them moving in the right direction.
 
 
5 hours later…
8:39 PM
Anyone have an explanation for the behavior of cut.Date here? I can see exactly why it's happening in the code, but I'm curious if there really isn't a better way...
 

« first day (1513 days earlier)      last day (1662 days later) »