« first day (85 days earlier)      last day (3216 days later) » 
01:00 - 19:0019:00 - 00:00

1:59 AM
I would have expected more response in one of the top tags....
 
 
5 hours later…
7:06 AM
g/m!
 
morning
 
Hi there
 
7:23 AM
Hi guys !
 
7:35 AM
@CathG @Tensibai @Peque hi!
 
8:12 AM
Good morning
 
@zx8754 dobroe utro
 
hi @zx8754 & @DavidArenburg
 
@CathG Hi
 
hi @DavidArenburg
@zx8754 nope (but i did remove the fluff in that Q)
 
@Jaap cześć
 
8:16 AM
new russian words for today ? I already "showed off" last week-end with "kak dela" ;-) (my mum learnt russian when she was young and she started to speak about prononciation or something and named russian as hard for some "sounds"...). So what does dobroe utro mean ?
@zx8754 it's some kind of sql -> R translation ?
 
@CathG no idea, wanted some light from you
 
@CathG it means "good morning"
 
@zx8754 well this is how I understand it : "please translate this sql query in R for me so I can subset my data in a more efficient way"
@DavidArenburg should have guessed... it's more complicated (to remember) than kak dela...
 
@CathG why is that?
 
@DavidArenburg do you have Polish roots as well?
 
8:19 AM
@DavidArenburg wow that post is brilliant, if everyone followed it, 80% of questions would never been asked
 
@Jaap Nope, just a Google Translate :)
 
@DavidArenburg suspected that ;-)
 
@DavidArenburg I don't know exactly but "kak dela" is quite "fun" so I remembered it fast but if you say "dobroe utro" each morning, it will make it easier for me to remember ;-)
 
@zx8754 Yeah, I'm surprised it was accepted so well actually
Usually people don't like such criticism on Meta
 
@Jaap oh, so that was Polish ? I was gonna ask
 
8:21 AM
@CathG Only if @zx8754 is present
I like to tease him with Russian while he keeps telling me he isn't Russian :)
 
@DavidArenburg I am not Russian! :)
You could say "Assalomu alaykum" or "salom" instead of teasing me.
 
@zx8754 ok so google says it's Ouzbek and I get this as translation : "Assalamou alaikoum"...
 
@CathG Uzbek
or in uzbek language "o'zbek"
 
@zx8754 sorry for that, French tend to put "o" in front of almost every "u"...
so I guess it means "hello" ?
 
yes, more like good morning/afternoon/evening, hello would be just "salom"
 
8:30 AM
@zx8754 That just sounds Arabic
 
funny, it sounds a bit Arabic
 
It is stolen from arabic - meaning wish you health
 
Aslam Aleikum or just Asalam
 
the response would be "Va-alaykum assalom" - wish you health too
 
@zx8754 yes ans "Sabach il-chir" and "Sabach il-nur"
The arabic lessons from school are coming back to me
 
8:32 AM
well, I once went to Morocco and we were saying something like that and answering something like that (except that for me, it was all phonetical, so "salamalecoum" / "alecoumsalam" ;-) )
 
@CathG The are many Moroccans and Aljerian in France, no?
As they were your colonies
 
@DavidArenburg yes. one of my colleague is Aljerian actually
 
@CathG you have famous Soccer players
like Zidan et al
awesome player
 
there were French people living in Algeria or in Morocco that "came back" when the "colonial age" ended and native Moroccan or Algerian that come here because it's easier for them to find work and they already speak the language...
 
@CathG yes, ofcourse
it is a common thing that people from third world come to first world countries in order to find work and etc
 
8:36 AM
@DavidArenburg Zidane is kind of retired ;-) now his son begins to play very good
 
@CathG yes i know
but he still plays ones in a while
I cant find it right now
but i saw a nice video of him playing a week ago
 
@DavidArenburg I don't really follow soccer, just hear some stuff from my husband once in a while, and happened to watch sport channels once in a while (only because I'm sitting next to my husband on the couch ;-) ) that's how I know his son plays well but I didn't know Zidane still payed sometime.
although in 1998 I was as excited as the rest of France :-)
 
@CathG yes France was dominant back then
two headers from Zidan in the final match
Another goal from Petit
 
yes, third one by Petit I think
 
or whatever his name was
 
8:40 AM
so yes, I'm right ;-)
 
oh no, not football
 
@zx8754 oh common
 
:)
I meant to say "oh no, no sport chat" :)
 
@DavidArenburg I'm impressed you remember the name of a French guy who scored 17 years ago !
 
@CathG I was very into Soccer back then
 
8:41 AM
I bet you beat everyone at "trivial pursuit" when choosing sport category ?
 
I was a 14 years kid
 
17 years ago, he was a teenager and would have been impressed a lot by being a fan
 
oh right, you're much younger than I am.......... ;-p
 
@CathG not today, no
Ok, much work to do today
 
:-( good luck then
I'm trying to figure out a way to avoid the error when the first element is empty in jangorecki's yesterday question
 
8:44 AM
@CathG lol
its just a waste of time IMO
I dont see how is it important really.
We could ask @Arun to modify the by statement to show a group even if there is an empty string there
 
yes and no, it makes me read the help page of data.table and think about how it works so it's something I "have to do" anyway
 
this way this code will work with jut my comment
 
still hanging on on your comment ? ;-p
 
@CathG I don't like the manual replacement with laaply it isnt robust and requires you to know column classes
I don't think @jangorecki is going to actually use it
 
I don't understand why R is telling me that integer got coerced to a list to match column type but then it is not a list...
 
8:47 AM
@CathG My comment was epic !
 
@DavidArenburg that surely is a problem...
 
@CathG I see you already with 4 votes there :)
 
@DavidArenburg right, I would never have guessed, I almost deleted the answer... and that made me pass 7k :-)
 
@CathG and not a single upvote on my epic comment!
 
@DavidArenburg because the important part is in dealing with the empty element problem, I told you ;-p
 
8:50 AM
Ok, I need coffee
@CathG yeah yeah
 
you should sleep more... ;-)
 
@CathG that's also true
 
actually, I need coffee too but if I take one now, then I won't have one after lunch (because too much coffee is not good for me - as in it makes my heart beat way too fast) and I know I will desesperatly need the one after lunch...
 
I thought I finished with SO goals but now silver badges in data.table and data.frame are within a reach...
 
@DavidArenburg and when you have reached thos, you will probably be close to the silver dplyr badge ;-)
 
9:02 AM
@Jaap argh, don't tease me :)
I only need 15 upvotes in each
for dplyr I need almost 200
I'm starting to think that regex is a type of a black magic
 
@DavidArenburg or try to get some silver/gold moderation badges
 
@Jaap like Steward?
 
@DavidArenburg why ?
 
@DavidArenburg for example
 
9:11 AM
@DavidArenburg yes @AvinashRaj regexes are sometimes hard to get, but they're usually the most robust too ;)
 
@Jaap too much work
and it is limited fo 20 revies a day so you need to be very consistent
I have one of these btw
 
9:32 AM
@CathG don't bother much about my yesterdays question
your answer is good but I was thinking there is a more direct data.table api for unlisting nested list, it seems there isn't
morning all :)
 
@jangorecki morning
 
hi @jangorecki; don't worry, it's just an excuse to spend some time on data.table documention ;-)
 
@CathG Or getting free upvotes after staling someone elses comment !! :)
 
@DavidArenburg thanx, updated the answer :-)
 
@Jaap NP
@Jaap I think you should inclide both versions, one for v 1.9.4 and one for 1.9.5
 
9:44 AM
@DavidArenburg will do
 
@CathG J/K in case you are getting tire of this
 
@DavidArenburg don't worry, I hardly take things seriously ;-) (btw, better precise that you're serious if you're happened to be sometimes ;-) )
any idea ? I'm kinda stuck...
 
@CathG interesting
I must resist
 
@DavidArenburg come on please don't. follow Oscar Wilde's principle "The only way to get rid of temptation is to yield to it" :-)
@DavidArenburg so if the first three are a it's verrrrry easy. Should have asked ! I thought he wanted the min dist to be less than 20.............. bummer........... :-/
 
10:01 AM
@CathG hmm, I've posted something
didnt test it too much though
And you posted something very similar...
 
yeah, actually, I posted (the thing I tried like an hour ago... sigh...) before I looked at your answer and saw it was the same so deleted mine.
this is the moment you say thanks ;-)
 
@CathG not sure what you mean
i just lost 10 minutes of work when I was just becoming productive!
I'm not listening to you anymore :) If you already had an answer, why did ask then :)
 
I saw the desired output was not the one I thought it should be (and the one I had) and the OP told to the first person to answer that the for loop worked and the for loop gave the desired output so I figured out it was the maximum distance inside a cluster that should be less than 20...
I lost far more than 10 minutes and you'll get all the rep because I gave you a link to a trivial Q, isn't that a reason to say thanks ? ;-)
 
@CathG I can delete if you want
If there something I learnt in life is that I dont understand women
So I just do what Im told and hope for the best
 
no don't delete, I was just kidding (although I'm a bit mad at myself for not asking about the 2 or 3 "a", which would have avoided me to lost an awful lot of time)
and I would have love to know how to solve the not-asked question (reset the distance each time it reaches 20 and change cluster...)
 
10:13 AM
@CathG maybe ask it then
could interesting
just dont tell me
 
ok, on my way to the restaurant with my best friend, visiting from Germany :-)
 
@CathG oh so you came from long vacation only to go to a restaurant during work
I'm starting thinking of reallocation
 
@DavidArenburg are you kidding ? I ask a question tagged with data.frame and data.table and I don't tell you that you can get closer to silver badges ?? I don't want you to hate me ;-)
 
@CathG I dont want to get fired neither
didnt work like 3 days
 
@DavidArenburg I come back from 4 days week-end. Long vacation is what I take in August........... ;-p
 
10:16 AM
@CathG argh!!!
I have only two weeks the whole year
 
@DavidArenburg this is not fair at all. I may have a lot of vacation but you have really not enough
 
SO is my vacation I guess
 
ok, I need to go, don't want to be late (restaurant is near my work and I will be careful not to take too much time + my husband will go get our girl this afternoon so I can stay longer at work : see how serious I am ;-) )
I may ask the question after lunch (how to reset etc).
 
@CathG Ok, bo apetit
OP accepted my answer btw
so thanks for the link I guess :)
@Jaap You need to update your output. The first output will be a data.table print method, the second will be data.frame with row names
 
10:35 AM
@DavidArenburg thanx, it's taken care off :-)
 
11:06 AM
@LyzandeR sup
Havnt herd from you for a while
 
11:23 AM
@Arun @CathG @AnandaMahto interesting reply from Crandalf bugs.r-project.org/bugzilla/show_bug.cgi?id=16473#c1
 
For R experts I'm pretty sure there's a more efficent way than mine
 
Hi @DavidArenburg and everyone.

Yeah, this has been a tough week for me (and will stay like this I guess). Going on holiday next week and need to finish sooo many things before I go.
The eternal war against the clock :P
 
@LyzandeR yeah, I hear what you saying
@Tensibai I may take a look later cause quite busy right now
 
Hi @LyzandeR
@DavidArenburg np, it's not for me at end :p
@DavidArenburg Unsure on how to take the comment ...
@DavidArenburg on the bug about type.convert
I've the feeling the ambiguity should be solved somehow (flag on call or something else)
 
11:42 AM
@Tensibai What about it? You mean you don't like his reply?
 
@DavidArenburg yes, sounds not that bad having a flag to tell type.convert to treat i as a char anyway
 
@Tensibai I'm still puzzled regarding the NA part
If this i a complex so type.convert should convert it to one
 
Indeed
but as far as it is not really a complex, it can't
 
For example
type.convert(as.character(complex(real = rnorm(1), imaginary = rnorm(1))))
 
That's the comment yes: "It is interpreted as a complex number with missing real part", but that sounds weird to me not having a way to tell it we're not passing a complex number but a char
something along the line: type.convert("i",no.complex=T)
 
11:50 AM
@Tensibai OK then just
type.convert(as.character(complex(imaginary = rnorm(1))))
Still works
Or maybe it assings zero as the real part by default
dunno
 
type.convert("2i")
this works too
> type.convert("0i")
[1] 0+0i
> type.convert("i")
[1] NA
I'm digging to find the source code
but all in all, the problem comes from this, an i is interpreted as the trailing letter of a complex number, but as there's no numeric part before, it returns NA
 
@Tensibai yes, it seems so
Maybe you should comment there too
 
I can understand why on a number usage but on a char usage ...
 
hello all
 
@PierreLafortune hi
 
12:06 PM
Quite opinated code
But an option to give tests to pass/avoid should not be a big overhead
kind of logical vector to pass for types tried (logical, integer,real,complex)
something along the line type.convert("i",types.tested=c(1,1,1,0)) for example
But I'm still struggling on the code to understand where it get NA from
 
12:28 PM
@Jaap thanks, and exactly. I've been looking for this functionality for a long time too.. Decided to finally incorporate it into melt/dcast. Glad it's of help!
@DavidArenburg yes that's ambiguous. I think there should be a way to tell if you're referring to complex number or a character. Besides, interpreting just "i" as a complex number directly seems weird.
 
@Arun Happy to see I'm not alone :)
But according to the source code: "/* This is a horrible hack "
 
Ok, I think I'm gonna shoot a tidyr question as I simply cant get my head around it
hope it won't be very silly
hmm, maybe not
 
@DavidArenburg post it here, let us learn :)
 
@zx8754 compared our solutions:
 
@DavidArenburg I also find the answer less than not satisfying...
 
12:37 PM
 microbenchmark(tensibai(),zx8754(),times=1)
Unit: microseconds
       expr      min       lq     mean   median       uq      max neval
 tensibai()  565.461  565.461  565.461  565.461  565.461  565.461     1
   zx8754() 1621.892 1621.892 1621.892 1621.892 1621.892 1621.892     1
There were 16 warnings (use warnings() to see them)
Warnings are yours :p
 
o o
 
From here
 
warnings are converting "." to numeric
 
@zx8754 yep
 
Hmmm where am I losing efficiency, code looks very similar, is it because of unlist(strsplit())
 
12:39 PM
@zx8754 I don't know, I was pretty surprised from the results
(and your code looks prettier)
 
@Tensibai haha don't judge the book from the cover :)
 
:o)
 
@Tensibai where are you using stringr library?
 
@zx8754 did you ever try to spread over two keys?
Like would do with dcast
For example
dcast(dat, A + B ~ C, value.var = "C", length)
So A and B are keys
 
@zx for strsplit I though
was an error from previous try from other scripts
I may suppress it
 
12:49 PM
@Tensibai lol.. link please.
 
@zx8754 I think the main perf loose is using strsplit on the refalt within the sapply
 
@zx8754 figured it out
 
@Tensibai I tried to put outside the loop still not as good as yours :(
 
@zx8754 ...
I'm wondering how I can make a biggest data frame to test...
 
rbind then cbind
 
12:59 PM
O_o
I'm too silly or ignorant to see how to use them to expand the actual df
(was thinking adding rep() around the original vectors :p)
Well nevermind, it seems to satisfy OP
 
@DavidArenburg surprised that you got a downvote for the data.table solution
 
@akrun hmm did I just got a downvote?
 
Earlier when I checked it was 3 upvotes, now 2
 
@akrun hmm, yes, you are righ
I've actually added a tidyr solution and still got a downvote
the library(dplyr)/library(tidyr) theorem didn't work it seems
Ok, made it ifelse, maybe that it more readable
 
Any idea spread adds NA column in the output?
not related to the Tidyr/Dplyr answer
 
1:13 PM
@akrun what you mean?
 
It is related to here
OP got the errors when the c2 step created an NA column. If we don't remove that column, in the next step, another NA column is again created and that results in error (possibly related to NA values in the key/value columns)
 
@Tensibai awesome. Bookmarked :-). Thanks.
@akrun who dares down votes data.table solutions? :P
which Q are you talking about?
 
@Arun It is this
 
hm, can't see anything wrong in the code.
David, seems like you annoyed some dplyr/tidyr users there with your data.table answer :-).
 
That is why I was surprised too.
 
1:21 PM
@Arun I'm guessing it isnt related to the answer
Im punning around with different annoying comments and probably oissed someone
Like seriously, what kind of setup can't handle a 33 rows data set???
 
:-)
 
Yesterday I punned this guy on a dplyr tag quesiton, maybe pissed one of the devs/contributers
 
@DavidArenburg maybe my english is not that good but how can you have "38 columns and always a header every 39th column" ?...
 
@CathG it seems you also have a sensitive retard detector :)
 
(33 rows data can be pretty big if there are eg 1M columns ;-p )
@DavidArenburg ?? got to help me on this one
 
1:27 PM
@CathG yes, and especially if you using a 486 system
but this guy has 38 columns
and one imaginary
 
@DavidArenburg oh nvm it's what we called a "false friend" (retard in french mean late)
how can this Q get 2 upvotes...
 
@CathG dunno
And me getting a downvote for a library(dplyr) answer
how that even possible
 
@DavidArenburg oh yes, I've seen you were talking about that. complete non sense imo
 
I always though that
library(dplyr)
df %>%
  whatever()
worth atleast 4 upvotes
 
not if you begin your A with library(data.table) ! ;-)
ok, I'm putting a closing vote on the 33x38 guy : lot of answers and it seems there are not 2 with the same output... "unclear what you're asking"...
 
1:32 PM
@CathG I hope you wrong about that :)
@CathG lol
The answers there are so long so I didnt even bother
 
@DavidArenburg me too actually but one has to face the truth : people in general don't know what's good...
 
1:51 PM
@DavidArenburg see how a data.table solution gets more upvotes than a dplyr one :-)
 
@CathG the dplyr one is awefull
ifelse, sum?
Why?
 
@DavidArenburg I was telling myself the same thing : how can anyone says that dplyr syntax is more friendly. here is a perfect example of the contrary...
 
@CathG yes, when we perform and update by reference within a subset nothing can beat data.table syntax
especially when add a binary join to it :)
 
2:51 PM
@CathG @CathG hey now, if it's closed (and presumably then deleted), it will be harder to point at it and laugh in the future
 
@Frank got a point there :-D
this should be closed by now... (@Frank, if you have not voted yet, still time to ;-) )
 
There are two very useful points to remember to appreciate (and master) data.table syntax:

1) Understanding the general form of data.table syntax, especially the `i` argument. The `i` argument is used to identify the *row indices* we'd like to operate on. When `i` is not present, operate on all rows. If not, operate on *those rows* that we obtain from `i`. And this is why, we don't care what you input into the `i` argument. It can be an integer vector, numeric (makes less sense), logical, data.frames or data.tables.. When `i` argument is another *data.table*, people have trouble undertandi
This is what I'm writing the vignette on, currently.
3
 
@CathG done, first i'd seen it :)
 
2. The j argument. As long as you return a list in j, every element of the list gets converted to a column in data.table. An easy way is to take a data.table, e.g., DT = data.table(x=c(1,1,1,2,2,2), y=1:6, z=6:11) and try to guess (and/or understand) the output of:
a) DT[, list(sum(y)), by=x]
b) DT[, list(list(y)), by=x]
c) DT[, lapply(list(y,z), sum), by=x]
d) DT[, list(lapply(list(y,z), sum)), by=x] # compare V1 from (c)
e) DT[, as.list(y), by=x]
f) DT[, c(.N, lapply(list(y,z), sum)), by=x]

etc.. The more you're comfortable with understanding `lists`, the more you'll be able to appreciate the power and flexibility..
4
 
@Frank thanks, the Q is better this way :-)
@Arun thanks for those notes, I will keep them carefully :-) (and try to figure out well the results of the lines ;-) )
 
3:04 PM
@Arun looks good and like something very useful for pointing folks to.

i think point 1) could probably be refactored. a sequence of sentences like "When..." "If not, ..." "And this is why..." back to "When..." makes it easy to lose the plot/miss the point being made. maybe to highlight what each point is, you could give it a title of sorts, instead of (or in addition to) a number

also, a typo: undertanding -> understanding
 
@Arun ok, didn't guess well d) and e)... :-(
 
3:19 PM
@CathG, wrap the expression in j with print(), and go through the intermediate result that gets printed for each group.
3
Frank, thanks. Writing joins vignette has been a bit challenging. But it's helped me how best to explain it. Hopefully it comes across well when I'm done with it...
 
@Arun nice way to understand what's happening, thanks :-)
 
@Arun cool. i look forward to reading and learning from it
 
3:46 PM
@DavidArenburg did you seen Brian Ripley comment to your bug report? :)
 
@jangorecki apropos: did you see the comment in the source code Tensibai found? chat.stackoverflow.com/transcript/message/24489177#24489177
 
yes
now the question is: should data.table rely on terrible hack :P
2
 
4:09 PM
if @Arun would share some new vignette here, please guys, ping me :)
 
Jan, do you know if it is possible to follow a post on GitHub?
 
@Arun What do you mean by a post ?
an issue or something else ?
(For issues there's a button subscribe on the bottom right, for repos you can watch them (left of the three buttons on upper side of the repository))
 
4:25 PM
I meant issues
 
4:35 PM
yes
subscribe button
at the right panel
@Arun
exactly what Tensibai wrote :)
 
4:50 PM
@MichaelChirico Hi, welcome
@jangorecki @Arun @Frank @Tensibai @CathG it is already fixed in the devel version bugs.r-project.org/bugzilla/show_bug.cgi?id=16473
2
 
@DavidArenburg awesome!
 
5:11 PM
a great outcome, glad you filed that bug!
 
@Frank I'm wondering if they fixed it themselves or due to my report though
 
well, i wondered the same, but i'm sure we wouldn't have heard about it without the bug filing :)
 
@Frank That's true
wonder how long it will take to the next release. Not to mention that it will take time for the great majority to update.
 
dunno. guess workarounds are called for in the meantime... or just never using i
 
My interenet is so sloooow today
@Arun I wonder if it will be better if the default of by the merge method of data.table will be to merge by common columns if key isn't specified. I find that default in dplyr very convenient.
 
howdy everyone
 
due to your report, it looks like
 
what is this secret corner of the internet i've been taken to =O
 
@jangorecki awesome
@MichaelChirico its just a get to know each other type of place I guess
So what you up to @MichaelChirico
 
still trudging through the endless mire of this project: stackoverflow.com/questions/29176114/…
i've got a bounty out for the person that voted to use different ID numbers in different years
 
6:12 PM
I've just posted an absolutly wrong solution using library(dplyr) and got 2 upvotes. Faith in library(dplyr)- restored.
 
6:53 PM
@DavidArenburg maybe they upvote because they agree that dplyr is a wrong solution :D
 
01:00 - 19:0019:00 - 00:00

« first day (85 days earlier)      last day (3216 days later) »