« first day (5 days earlier)      last day (3302 days later) » 

1:57 AM
@DavidArenburg She takes after my wife.... in looks and behavior :-)
@DavidArenburg, I won't comment under this answer of yours but your approach won't work if there are gaps in the data.
I posted a "zoo" solution since I think it would be a little more robust.
 
 
5 hours later…
7:16 AM
@CathG sup
@JanGorecki You can't even imagine how much thought I've put in this simple roll...
@AnandaMahto Interestingly you look exactly like I was imagining you, not sure why
@AnandaMahto I've made an edit referencing to your answer and +1. I didn't really think this answer thru
@JanGorecki It seems like you are contradicting yourself. Either Way, list2env could make sense if you are not sending the objects into the global environment, rather to some temporary environment
@JanGorecki It got accepted 0_o...
 
7:43 AM
@DavidArenburg Hi! I've been busy with the kids this we but I saw your room is going great ! ;-)
 
@CathG I can add you as owner if you want
For being the first one here
 
@DavidArenburg, thanks :-) (if you think I can "handle" it, I feel quite small compare to all of you experts !...)
 
@CathG I'm not an expert. I'm just an edict. I think we already established that :)
 
:-)))
 
7:49 AM
I wonder who else to bring here
or just come back to work...
 
well, I've really got to get into data.table (for instance) because I must say, a lot of the discussions were high above me (not sure it also works as an expression in english but you see what I mean)
yeah, maybe a couple of minutes of work, you know, just to cut down SO a bit ;-)
 
@CathG Yeah, it happened somehow that all the data.table experts were here yesterday at ones
 
;-)
 
Actually, I work faster than before thanks to all the R stuff I learnt in SO!
 
7:52 AM
@CathG If you mostly learn, than its fine
but I have almost 1K answers already
that more than most of the 20 top r tag users
all time
and im a member for less than a year and a half
 
@DavidArenburg, well, I guess, one can say that you teach...
which is also good (maybe not for your boss though)
 
@CathG I mainly want to keep my job
@CathG I really don't know much
learnt most of it here
and mainly go for the easy stuff
 
I can understand that (the "keeping job" part) !! as long as you answer requests at 2 am, you're probably staying of high value for your boss ! (and you probably work faster than almost everyone)
 
i cant remember something too complicated I'va answered
I'll tell you the secret of how get rep on SO
 
I'm all ears ! ;-)
 
7:56 AM
1- Camp the "newest" tab on the r tag
 
check
 
2- look only on question you sure you can answer fast
3- answer them real fast
 
("not complicated" is very relative)
 
4- (Very important one) - timing
 
for the 2- , not so checked :-S
 
7:57 AM
timing means - do it on US day hours
 
neither the 3-...
 
when there are many users active
there are many stupid questions on these hours
and votes come free
 
5- don't answer when akrun is active ;-)
 
@CathG impossible
he is always active :)
 
I need to translate my time on SO then !!!
 
7:58 AM
you can only be second
5- look smart
5- is also very improtant
 
@DavidArenburg, yes, he doesn't even sleep much, does he?
 
@CathG no, i think he takes 7-8 hours brakes
he isnt working
 
oups, don't think the 5- one will be easy for me... ;-)
 
he was here yesterday, so you can ask him
anyway
5 is improtant
as this is your brand
when you look smart
People will upvote your answers even if you are completely wrong
 
I think my answers to problem involving recursive functions are not so bad ;-)
 
8:00 AM
so that too many times happens
@CathG Yeah, I suck in recursive functions so I don't answer them usually
 
@DavidArenburg, or they will upvote if its from the Hadleyverse because, well.... :)
 
yes for akrun, I saw the discussion with him yesterday,
@DavidArenburg, I love recursive functions, they permit to solve complicated problems without going into the complicated part because they will do that for you :-)
 
So to sum things up: camp the "newest" tag. 2- look for silly questions and answer tham real fast. 3- timing. 4- brand yourself. 5- get upvotes that you don't really deserve. 6- enjoy the fame.
 
I found the chat about India between @AnandaMahto, Arun and Akrun really great, I mean, that's exactly what this room was about, wasn't it?
 
@CathG, I believe so.
 
8:04 AM
@DavidArenburg :-)))) Ok, I'll try that ! (I already improve my regex skills which gives me access to a lot more easy question :-) )
 
@CathG Yes regex... I wish I could get a grasp on it.
 
Avinash Raj is a regex expert. Hey, maybe you (we...) could invite him?
@DavidArenburg, LukeA seems to know the "precept" of SO: stackoverflow.com/questions/29890303/…
 
@CathG yes, he is very fast
his only problem is timing
he usually active on the wrong hours
@CathG I was thinking inviting him
then this room will become all about india chat :)
 
Filled with names that you cannot pronounce....
 
@AnandaMahto I saw many bad dplyr answer upvoted which doesnt even work
The trick with dplyr that i see alot
is that they write some fancy dplyr solution but they don't show the output
So everyone just assume it works because its dplyr
 
8:14 AM
Well if it doesn't, you're probably doing it wrong, or it shouldn't be done, or it wasn't indented properly, right?
 
@AnandaMahto Exactly
 
Any of you played with Tyler's Wakefileld package yet?
Needs to be updated to be not so US-centric :)
(Not that it should matter for random data.)
 
@DavidArenburg, for the question about wrong case sorting, actually is a matter of locale...
 
@AnandaMahto He is too obsessed with Hadleyverse
When I see dplyr::tbl_df I get sea sikness
I just hate this class
You know that setDT can't handle it?
 
I did not know that, but I would imagine that could be resolved.
 
8:20 AM
If you will run setDT on dplyr::tbl_df class it will run without error but you won't able to run any data.table syntax. You will also will get stuck with its awful printing method
3
Q: tidyr repeated measures multiple variables (wide format)

Tyler RinkerI'm trying to take columns that are in long format and spread them to wide format as shown below. I'd like to use tidyr to solve this with the data manipulation tools I'm investing in but to make this answer more general please provide other solutions. Here's what I have: library(dplyr); libra...

 
If I share code with someone else who does not generally look at code, I'm more likely to use a "dplyr" approach because they are more likely to understand it than a bunch of nested commands.
 
See what solution he accepted. I don't want to start this discussion again though.
@CathG Like I told you, see points 5 and 6 here
 
Yeah. That one wasn't particularly impressive....
 
@DavidArenburg, damn right !! :-)
 
I think Paskcal could be interesting
rawr
nicola
Kashaa
alexis_laz
Pascal
@CathG Now that I've checked just identical(mixedsort(mylist), sort(mylist)) returns TRUE
I think I'll close this as a dupe
 
8:35 AM
I'll be honest: I have mixed feelings about rawr
 
@AnandaMahto that's why he is interesting
I remember you had an insedent with him long ago
when he cursed you
he is a bit a bully
but i like him for some reason
 
@DavidArenburg, yes and LukeA answer just does the same that without the tolower call... (btw, pdubois got me my easiest earned rep with this stackoverflow.com/questions/29257389/… :-))
 
he's got skills with base R for sure
 
Yeah, but it can be done without as much attitude. Even if your handle includes "raw" in it.
 
@AnandaMahto yes, he has an attidute.
I have it too btw.
 
8:38 AM
I don't know what to think of Pascal either (while we are being completely honest), he seems a bit "hothead"
 
You're kidding me. I never noticed :-)
 
I'm getting very impatient sometimes. I've been rude quite a few times
@AnandaMahto Yes, you told me several times
 
8:48 AM
@CathG Yes, he is certainly behaves like one
 
@DavidArenburg, with its last comment I certainly have an argument to what I was saying
 
@CathG Yeah, that's what I meant.
Ok. At least we sorted it out. Someone just removed his upvote from my answer, while Luke is on fire :)
As you can see, this is a good illustration of answering a very simple question fast
 
I've seen (much) other times where he put comments luke that (actually, akrun can also sometimes be rude in its comments, which he then deletes...)
 
How much easy rep you can gain
@CathG I never seen akrun rude
he is always super polite.
and patient
 
I left my upvote to your answer because that was a function I didn't know. is it also a mix numbers/letters ?
 
8:59 AM
@CathG yes
 
well, not sure we're talking about the same akrun ;-) let say that I think he doesn't like to "loose" so I've seen several comments that were not that kind towards the other answerer (including me) or the OP... but when the OP does realise that akrun gave the best answer then he is indeed very polite and patient, making very detailed answers with every possible case that can resolve the problem
@DavidArenburg, cool for the mixed sorting function, because I once wrote a "natural sort" function and I doubt it is as efficient so I'll know what function to use next time :-)
 
@CathG I'm not sure if its very effective though.
like timewise
 
well, I'll put both functions in a "contest" and be very happy if I have the surprise to see my function performing better
 
@CathG I doubt this function was written for speed purposes
from my experience I can write faster code than anything that wasn't written in Rcpp
Except when the code was written by Ananda. He is a master in this
 
I have to get a look at his splitstackshape package, I'm guessing the purpose is reshaping the data in all sort of ways? I might find it useful
 
9:13 AM
@CathG yes it is nice
very efficient too
it is a basically a wrapper for data.table
you should look into data.table too
especailly in the devel version on GitHub
Just invited a fellow Russian here :)
Sup @JanGorecki
 
just came to see whats going on
but I had to go back working
 
@JanGorecki That's fine
always good to see you
 
so I will just leave you interesting doc
 
Morning @Arun
 
@DavidArenburg, yes, I want to get into data.table for quite some time now, just have to "take the plunge"
 
9:19 AM
SQL-data.table functional mapping :)
 
@JanGorecki interesting
 
@CathG if you know SQL guy you definitely should read above link
 
you are full of surprises
 
@JanGorecki, thanks for the link, I will definitely take a look at it
 
 
1 hour later…
10:34 AM
@CathG It's a fairly limited set of ways, not "all sorts" :-) Mostly for "splitting" concatenated columns, "stacking" groups of columns, and (related to "stacking") providing a faster (and slightly different philosophy) alternative to "reshape" when the direction is "long".
My other favorite function in the package is the stratified function that samples a data.frame or data.table by group--like sample_n or sample_frac from "dplyr".
 
10:48 AM
<kbd>ctrl</kbd>
Why on earth it doesn't work
 
Hello, I presume? :)
 
@tonytonov Kak dela
 
Horosho, spasibo!
 
Hello I have 1.5k rep can I get write acce... oh wait. Hi.
 
@AwalGarg Hi
 
10:52 AM
Just curious: What does rep have to do with room ownership?
 
@AwalGarg It just typoe of a community room. So trusted users can get ownership
It is also not a help room for SO starters so it is limited by rep for new users.
 
ah, I see.
 
@tonytonov We made this room for some OT discussions and get to know each other (if you were wondering)
it kind of at a test stage currentl
 
cya!
 
Yeah, I guessed so. That's cool, I'll be hanging around.
 
10:57 AM
hmmm
<kbd>Ctrl</kbd>
something is wrong with my markdown foo
 
Playing with some tags, huh? Keep in mind that so chat only supports a very limited subset of markdown.
 
@tonytonov I've actually tried to put into a comment
thought it will support it
 
Never saw it being used, so I think it's not supported.
429
Q: What HTML tags are allowed on Stack Exchange sites?

Jeff AtwoodThe Stack Overflow site engine, as you know, uses Markdown for questions and answers. Per the Markdown specification, you are allowed to freely intermix HTML and Markdown tags. Not all HTML tags are allowed, as that would be an XSS paradise. Which HTML tags have been whitelisted and are allowed ...

 
@tonytonov I saw it
<kbd> is supported in SO
 
11:13 AM
Ah, okay, though that's for Q&A's only.
Comments and chats don't seem to have it.
 
11:34 AM
@zx8754 sup
we have a third russian guy here :)
wow just got 125 points at once....
 
Hi
I am upvoting all your posts :P
joke!
 
@zx8754 no just got some easy bounty
 
@JanGorecki very nice, hopefully this will encourage me to use data.table more often
 
And I'm on first page of SO for first time o think
 
What does 484 mean?
 
11:39 AM
484 rep this week
since Sunday :)
Ananda is also there.
 
@DavidArenburg, impressive, congratulations !
 
@CathG I've just got a bounty. akrun and Ananda are there by birth right :)
 
:-)
 
lol
 
It's kind of weird that Colonel Beauvel didn't post his comment as answer
 
11:50 AM
@CathG which one
 
the apply(df, 1, ...) one
(for the bounty question that gave you all the rep)
 
@CathG Oh, on the bounty. I think he didn't really check the question, rather just gave the guidelines. It wasn't just apply(df, 1, ...) there were some additional aspects to it :)
 
to be honest, I saw this question and just got a headache when I saw the all listing of data and the "not friendly" function so I passed ;-)
I think there is also a "bounty effect" (beside the meta effect we talked about), because does the question really deserve +5 ? oh, I'll get you 10 rep more for going through the headache ;-)
(Although you could have put it as a new column as the OP requested, I mean, that the least you can do for +100 ;-p)
 
@CathG lol. I didn't read it thru. It took me 3 mins to answer and I moved on
I was certain someone will give a solution that isn't involving apply with margin 1
I never use apply with margin 1 in real life
 
I only use lapply or sapply :)
 
12:01 PM
don't really like margin 1 either. You have to transpose your data after and if the data you're applying your function to is not a matrix you can have awful surprises...
 
@zx8754 busted...
 
mapply is a nice one too
 
@CathG It pretty slow though
 
well, it might be but it still is kind of handy...
 
@CathG Btw, if you run it on factors you should remember to convert to as.character first, otherwise it will do it in each iteration Martin Morgan showed it me ones
 
12:06 PM
I almost never work with factors, don't like them...
 
Implicit factors are evil
When explicit then they are useful.
 
I only use factors when I don't have the choice but usually it's character or numeric variables that I turn to factors...
but thanks @DavidArenburg for the tip !
 
@CathG NP
 
require() or library()
I used to use library() all the time, for past 6 months, for some reason I started using require(), now after seeing Yihui Xie post, I am using library() again :)
 
12:23 PM
@zx8754 Interesting
 
I use require / requireNamespace for suggests and optional deps in my script, for any mandatory I use library because it throws error in case of missing.
hard to focus on work once I'm in that chat :)
2
 
lunch time :)
 
@JanGorecki You got that right...
This is the basically the evil purpose of this chat. So i'm won't the only one who can't focus on work :]
2
 
not only work, I am not answering any more questions at SO... once I am here.
 
now I see it can damage my private projects development performance :P
 
12:33 PM
And someone asked again how to calcualte mean by group
I wonder why we still don't have some canonical dupe for it
 
12:48 PM
Do you agree, that answers posted to duplicated posts should be removed or upvotes removed and locked to discourage users to answer to duplicated posts...
 
It's often much easier to answer the question than to find the original duplicate, and it is also a good source of rep for new users, so I have mixed feelings about dupes.
 
@zx8754 I don't know about that. Dupes are improving Google search and if closed are also referring to other similar questions. Many times, old dupes are becoming less relevant too. And the new dupes containing newer or better answers.
 
maybe upvotes should be locked... but sometimes, there are more interesting answers in the dup question... maybe answers with more than 5 or so votes should be merge with the former question ?
 
@BrodieG Yeah cheap rep, we all done it...
 
@DavidArenburg :)
 
12:50 PM
That said, if someone knows the dupe and isn't trying to shoehorn an old answer of theirs into a question just so they can harvest more rep, then that is likely the best thing to do, David's caveats not withstanding.
 
@CathG It's just you
J/k. closing it too
 
@DavidArenburg lol
I liked your comment though :-D
 
1:46 PM
to go back on the dup subject, this makes me think that question upvotes should definitely be removed on dup (and locked once the question is marked as duplicate) because I think posting duplicated question should be discourage and it certainly shows that the OP didn't make much effort to look for an answer by him/herself...
 
@CathG Google for %in% is impossible
I think that for == too
this is a kind of dupe that hard to find
 
I'm for removing dups and linking original answers, it makes sense in the long run as the valuable questions will gets more and more upvoted = easily googable. So we need less man power to answers same questions repeatably.
 
@DavidArenburg indeed but you can search google for "row match criteria R" and you're likely to find a solution. You did find the question that this one was a duplicate of (if this sentence is in anyway english...)
 
@CathG I'm quite an experienced user. I think I wouldn't find it if I wasn't so obsessed with SO
I do agree that all the "sum by" or "mean by" are very easy to find, but I remember very expereicned users having difficulty to find %in% dupes
 
@DavidArenburg, you've got a point ;-)
 
1:58 PM
@CathG Here's a classic example
probably a dupe but I don't know how to search for %in% effectively ... — Ben Bolker Apr 14 at 21:12
 
and I'm maybe too addicted to google search that I'd rather spend hours trying to find an answer that I'm "sure" is there, somewhere instead of asking a question. Still, sometimes, it kind of bothers me to see some questions upvoted when I have the feeling it already exits in like 10 copies...
 
@CathG Bother me too...
 
@CathG bothers me too, but unless it is egregious I find it is much easier to live with the dupe. There really is limited harm caused by the dupe.
What does bother me is failure to provide a reproducible problem, with data, though sometimes that too feels like a futile crusade.
 
@BrodieG, I totally agree. I sometimes wonder if some people don't think we are mind readers...
and with their environment in our R session...
 
@CathG also, extra incentive for you to get your dupe hammer!
 
2:13 PM
that's for sure ! ;-)
 
@CathG I can't even start to imagine the destruction we are going to see on SO when that happens :)
 
user image
3
 
:-D (well it's not gonna happen anytime soon.....)
 
@CathG You'd like to think so. I thought that I'll never reach 10K rep in my life
 
2:38 PM
isn't the dupe hammer related to gold tag badge ? (well I do think I'll never reach 10K rep at least not soon, I haven't even done the first half... but I hope to get the silver r tag badge soon ;-) ... don't have the "hooked" badge yet ;-) )
 
@CathG yes, gold badge. I think I got mine around 18K rep, and I only answer R questions.
 
why can't I edit my comment? anyway, it seems the badge I was refering to is not "hooked" but "enthousiast" or "fanatic"...
@BrodieG, I'm definitely not about to get that hammer...
 
Looks like you're close to 1/3 of the way there, and that is the hard third. Also, nice profile quote.
 
@CathG It mainly depends or your upvotes/accepted answers ratio. If you are getting mostly upvotes you will get it on much less rep. Somewhere around 12-13K
 
I guess a lot of my rep is on accepted answers. Didn't realize those didn't count towards the badges.
 
2:48 PM
@CathG I don't see the "Unsung Hero" badge in your profile. So you are defenitly on the right path
 
@BrodieG thanks (and for the support too!), I saw it once (in french) and found it so true... @DavidArenburg, well, I've got the "Tenacious" badge... ;-)
 
 
1 hour later…
4:08 PM
@DavidArenburg Congrats for getting the bounty!
 
@akrun Thanks. This was a simple question and the poor guy had to spend so much rep for getting it ansered
 
4:56 PM
I'm starting new (another) package built around data.table :)
But nothing interesting for non-datawarehouse folks
 
 
4 hours later…
8:45 PM
@DavidArenburg (dat1+dat2+dat3)/3 was a pure slap in the face from a pro, love it, nice and simple. stackoverflow.com/questions/29905250/…
time to go to bed!
 
@zx8754 Yeah
But you won :)
 
I don't deserve it, I would pick Josh's answer
 
@zx8754 He has that ability to come up with such type of an answer
he does t quite often
 
 
3 hours later…
11:43 PM
First time used OOP inheritance, at least first time intentionally. Do you guys know OOP well?
I fell so wow :D
 

« first day (5 days earlier)      last day (3302 days later) »