« first day (792 days earlier)      last day (2522 days later) » 

6:36 AM
Good morning from Cyprus... finally :)
 
Morning
Anyone know how to flag a question with two duplicates ?
 
@user2100721 I edit the comment of duplicate within 5 mins :P
Hello all!
 
Nice to hear that
@RonakShah now i added another link
 
@user2100721 closed now :-)
good morning all btw :-)
 
morning
 
6:46 AM
@Sotos nice to be home again, isn't it?
 
@Jaap it's like I never left :)
 
@Sotos how's your dad doing?
 
He is ok. Happy for the good news he got but still waitig for the third cycle to start and finish so we ll have the full outcome.
 
7:05 AM
Hello
 
14 messages moved to Trash can
 
@Natty tp
 
7:41 AM
Good morning!
 
Top of the morning to you, too.
 
I am a master of R #rstats https://t.co/vXLCr6QN1z
 
@zx8754 haha nice
 
red is not even red lol
 
Blue is not blue also.
 
7:51 AM
many of us have made that mistake
 
Yeah, I mean even if the order was fine, then red would match with orange line...
 
applying base rules to ggplot
 
8:26 AM
hi everyone ! :-)
 
@Cath Hi!
@RomanLuštrik Late working morning.
@SymbolixAU I also wonder, why do you mirror the image with Macbook?
 
8:45 AM
@m0nhawk which image?
 
@SymbolixAU Sorry, just my perfectionism. The one in the first blog post: symbolix.com.au/blog-main/2017
 
hmmmm.... I'm going to have to check that in the morning now :)
 
:D
I just have high sense of symmetry and this it's itches somewhere.
 
was it the cursor arrows that gave it away, or the ports on the side?
 
Both.
 
8:50 AM
ha
 
@m0nhawk That's the effect of the southern hemisphere.
Toilets swirl in the opposite direction and computers are mirrored.
 
I definitely need to own Australian Macbook. :)
 
9:40 AM
3 messages moved to Trash can
 
9:53 AM
As promised, I've added benchmark results, @Frank, @Jaap, @DavidArenburg. With the benchmark data, data.table is way faster than base R (don't mention tidyverse) which is in contrast to OP's observation showing base R 5 times faster than data.table with OP's production data set.
 
@UweBlock nice, what about the solution I proposed?
 
@Jaap Well, isn't setDT(df)[, .(yr = yr.start:yr.last), by = names(df)] nearly the same as setDT(DF)[, .(yr = yr.start:yr.last), by = .(id, gender)] except it uses all columns in by?
 
@UweBlock it solves the problem of your 2nd sol ;-)
 
10:21 AM
I feel this should be closed, either as dupe, too broad (= not enough research) or other... ?
 
@Jaap Good point. Will pick this up, in case it's necessary to extend the benchmark to include more non-varying columns than just gender.
 
@Cath this is my answer ! just typing the function name, this was ridiculously easy :-) — Dan Chaltiel 33 secs ago
I was gonna say but didn't want to sound to rude :-D
 
@UweBlock nice, thanks for looking into it
 
11:51 AM
found it, closed.
 
12:44 PM
hey guys, can you do a join in data.table where one joins a in table 1 on the closest value b in table 2?
 
how big is the data, maybe crossjoin, then filter on min?
 
@zx8754 Few million rows in table1, few hundred in table2.
Basically I have a large table of a continious data stream, and a small table of events. I want to find the nearest event for each point in the data stream.
If that makes sense
 
@zx8754 I suggest we close Axeman's comment as an exact duplicate of this question. :)
@Axeman Sounds like you're doing something fun. What is it?
 
I trust his google skills, must be something else
 
12:56 PM
@zx8754 That seems like it should do :)
 
@RomanLuštrik 2 votes, needs 2 more...
 
I just have a hard time parsing what data.table devs write sometimes
@zx8754 closed by community.
 
:)
 
@RomanLuštrik I'm analyzing tracking data of fighting guppies. The events are manually annotated bites/attacks.
 
millions of rows on guppies... is it like n guppies moving coordinates in a tank?
 
1:01 PM
It's a bunch of trials, each with two individuals, each with one row per video frame, and two hours long fights, i.e. ~ 30 * 60 * 60 * 2 * 2 rows per trial
I'm trying to train some neural networks to automatically annotate the tracks and estimate winners/losers
 
OP changed the tick, I understand better :-)
 
1:45 PM
heh, -10, this user will never come back to SO, or learn and ask better... stackoverflow.com/questions/44699831/use-rshiny-for-basic-tasks
 
2:06 PM
@Sotos yes but how do I do to add "a" at the beginning? can you type it for me?"... (I wish I could redv for lack of slightest effort... (lol for the apple/pear transformation)
 
@Cath lol...indeed... "hold my hand tight"
 
:-D exactly!
 
 
1 hour later…
 
1 hour later…
5:07 PM
@Axeman Guppy fight club, interesting.
Was listening to a podcast (I think it was Planet Money) titled "shrimp fight club".
It talked about how some Senator started busting some researcher's ass for studying the way mantis shrimp fight.
 
 
1 hour later…
8:06 PM
@Axeman I initially read this as "fighting puppies". I was about to refer you to the SPCA ;)
 
10:04 PM
@BrodieG Haha, nah nothing like that. Just tiny little fish doing some chases and stuff.
 

« first day (792 days earlier)      last day (2522 days later) »