« first day (8 days earlier)      last day (3515 days later) » 

08:11
15 upvotes yesterday without any rep
08:55
stupid question (probably): how do you manage to have a link that points at a specific place in a page instead of just the page (like, how can one have a link to a specific comment or answer?)
@CathG show me. Usually if you press on the timestamp you'll get the link
@DavidArenburg, I thought you were supposed to stop answering once you had reach the maximum rep? ;-)
@DavidArenburg like in this page, have a link to my answer...
Press on "share". It will give you the link. In order to get a link for a comment you need to press on the time stamp
@DavidArenburg terrific, thanks a lot !!! (now, I'm less stupid ;-) )
@CathG NP :)
08:58
so this
@CathG Are you promoting your answers again?
and, yes, it works !! :-). well, also, lame attempt to get upvotes, got me!
@CathG It not hard, you do it all the time :)
btw, I'd like to know which answer is "correct" = what to do with 0.
anyway, I like @akruns answer better
I literally hate ifelse
09:00
well, akrun's answer was what I wanted to do when reading the question, except that it was already there... ;-) like your answer for this. I need to improve my speed !!
@DavidArenburg, thanks for the upvote, you didn't have to you know, I swear I asked the "link question" really because I wanted to know how you guys always get link on specific spot in a page
@CathG You just need to be active on different time zone
well I am active on different time zone, just not on SO ;-)
@CathG G/J
anyway, as for the question, if 0 values are supposed to be 2 or -2 instead of 0, akrun's answer doesn't work...
@CathG Maybe. I didn't read thru as akrun answered OP before finished writing it
*akrun answered before OP finished writing.
09:07
@DavidArenburg Time to create another account :)
so, maybe not a robot, but mind reader
@zx8754 Hmm, that might be actually not a bad idea...
or he's got 2 accounts and post question/answer. btw, I've seen some cases where user ask and answer a question (very smart, get upvotes both for asking and answering!), what is that about ?
@CathG It is allowed in SO
Jeff Atwood on July 01, 2011

The FAQ has contained one key bit of advice from the very beginning:

It’s also perfectly fine to ask and answer your own question, as long as you pretend you’re on Jeopardy! — phrase it in the form of a question.

So …

if you have a question that you already know the answer to

if you’d like to document it in public so others (including yourself) can find it later

it is OK to ask, and answer, your own question on a relevant Stack Exchange site.

To be crystal clear, it is not merely OK to ask and answer your own question, it is explicitly encouraged. …

@CathG I am not against it, as long as it is a valid question, sharing your solution is good.
@DavidArenburg or you can sign in as me :P
09:16
@DavidArenburg, thanks for the link and explanation, I still find it weird as you're posting a question but not really hope to get answers... but I guess the purpose is "offering" some knowledge to the community...
@zx8754, I already proposed that but he didn't seem to want to for an obscure reason
@CathG pure selfish of him
lol
@CathG I can't finish my dinner so I would rather bin it
@zx8754 ...without thinking of all the starving ones... <sigh>
@CathG I think we upset him, or he is busy cooking bigger meal
09:30
@zx8754 :-D (I would go for the 2nd option ;-) )
Is there a way to set Rstudio to download and install packages if they don't exist, instead of erroring out with "it doesn't exist"?
I'm not using Rstudio but I'd love R to just do that
@zx8754 You could do something like this
is.installed <- function(checkpckges, repo = "http://cran.stat.ucla.edu/")
{
  for (pckgname in checkpckges)
  {
    if(is.element(pckgname, installed.packages()[, 1]) == "FALSE") install.packages(pckgname, repos = repo)
    if(is.element(pckgname,(.packages())) == "FALSE") library(pckgname, character.only = TRUE)
  }
}

temp <- c("RODBC", "devtools", "sendmailR")
is.installed(temp)
@DavidArenburg yes, but I would prefer more automated, I mean it is only one thing you do if package is not availabe - you install it. RStudio should predict this, and maybe prompt, "oh package is missing, do you want to install?"
answer is in the question, answers there are kind of despairing, no?
09:45
@zx8754 You can put this function into .Rprofile and use it instead of library You can tweak it to using deparse and maybe call it library2 maybe?
and the question is getting upvotes...
@DavidArenburg does your function work only for CRANpackages ?
@CathG We all started somewhere
@CathG Yes (it's not my function, I Googled it someday), GitHub is a bit more complicated.
@zx8754, I'm not criticising the OP but I just don't see the point of posting answers that are less good than what is already in the question
@DavidArenburg ok thanks, can be useful anyway
oh ok, question was just asking in an ambiguous way...
@docendodiscimus what's up
10:19
Just accomplished some awesome binary join on 7MM rows while doing some operation per each join using by = .EACHI in a few milliseconds (outside of SO fo a change)
@zx8754 First time I hear of this. But Dirk is of course giving a talk there :)
Romain François talks are fun
@zx8754 There will be a lot of other too: Dirk, hadley, Ricchi Cotton and (hopefully) Arun
Last year's EARL included most of the above
I regret I've missed useR2014. Could go for free on companies expanse
11:15
user2015 seems more useful, mostly tutorial based
Greeting, David, zx8754, and CathG. Good to see you all.
@jazzurro Oh hi man
good to see you too
@jazzurro So what do you do in life :)
Good to see you David. This is the first time to join the chat. I saw an invitation and decided to join here.
I recently started working as a researcher/teacher. Yourself?
@jazzurro Yeah, I'm collecting people from SO in order to built some type of a community
Its just a test to see if it will work
@jazzurro Just 24/7 at work (doing SO) :(
That is great. I have been here since last August, and I realize that we have some great folks. If we can get together we can do something together.
11:26
@DavidArenburg could invite another steady rising star Jaap?
@jazzurro It will be hard to get together as we are from all aroun the world
@zx8754 You consider Jaap as rising star ? :)
True, David. But you are doing something good for the community.
Jaap has been around for a long time, I think.
@jazzurro agree on "we can do something together" :)
@zx8754 I think you can invite him too
you are the host :)
11:28
@zx8754 I gave him write access
but you can invite people if you wish
Is this the first time you are sending a bunch of invitations to some R users, David?
@jazzurro Yes... this room is new
but there are additional two R rooms
but this room is for OT talks
not explicitly on R
more like mingling and stuff
I see.
@DavidArenburg invited, wasn't as intuitive as expected
@zx8754 Yea, you"ll get use to it:)
11:34
@DavidArenburg Sorry for going back to what you mentioned, but will you go to useR! 2015?
@jazzurro You shouldn't be sorry lol (You are very polite it seems). No, I won't be going there. No time/money to go to Denmark
I see. I am debating if it is worth going to Denmark. Programming is not my field, but I am very keen to see other R users.
(I try to be polite given we do not really see one another in our daily lives!)
@jazzurro I see. Where do you live? Maybe useR! will be in your country too soon
Does anyone understands this stackoverflow.com/questions/29966419/…
@jazzurro btw, I really like that map in your profile. Did you make it your self?
and is that your real fligh map?
@DavidArenburg I have a hard time to interpret the question. The writing is not clear to me. In addition, I have been a bit "rusty" due to my work. As for the map, yes, that is my work. The original idea come from a guy at UCL. I re-centered the world map and figured out how to split the flight lines. This was the first GIS graphic I did last year. Thanks for your positive feedback. :)
@DavidArenburg Ah one more thing to answer. I have been based in Japan last two years. Before that I was in New Zealand.
@jazzurro New Zealand is the home land of R, you know.
11:47
@DavidArenburg Yep. I know that too. But my co-workers were not using R that much.
@jazzurro So you should change that :)
On my first job, I came to an office where everyone were using SPSS and were paying money both for license and support. I convinced everyone to move to R (and I was very fresh in R back then)
@DavidArenburg Haha, I am making my own efforts for that. I met R when I was doing PhD. My supervisor was using R for stats and graphics. Now I have opportunities to teach students. I am planning to implement R training in one of my courses in the future. It seems that many people use SPSS even now. Many researchers seem to use SPSS a lot. I guess you changed your first company folks a lot. :)
@jazzurro Yes SPSS is popular for its simple interface and no need in writing syntax at all
I'm now in a process of teaching my co-workers data.table and two of them already posting data.table answers on SO :)
If they are happy with SPSS, that is OK. I would not go back to that... R does more things for me.
Hehe, that is great.
You have SO school, don't ya?
@jazzurro Not sure what you mean by that :)
I just tought them R/data.table
and they started posting on their own (without telling me)
I didn't encourage that
11:54
Haha I think you stimulated them.
This is great.
@jazzurro Anyhow, good to meet you. Stick around. You can say anything you want here as this a general chat room
@DavidArenburg Thanks for that. I am happy to meet more SO users here. As long as I can find time, I try to drop by.
Gotta go back to lecture prep now. Chat soon!
@jazzurro Ok, have fun
12:33
@DavidArenburg posted an answer, hope that's what he meant
@zx8754 Ok G/L with that. I have no idea what he wants
I've been answering his answers for quite a while. From my experience, the solution is usually very simple, but he overcomplicating the problem with his strange attempts
12:45
@DavidArenburg Have you looked at stackoverflow.com/questions/29964003/… . I am just curious that why @maRtin got less votes compared to the accepted one although he answered it first
@akrun You think Colonel stole it form him?
I feel that many times people upvote answers from users they trust
I don't think he stole
and quite suspicious about new users
Just curious why the original answer got less votes.
ok
@akrun see the edit history, it wasn't as complete
12:48
@akrun I see him posting very similar answers to earlier answer with some minor tweaks
don't know why he got so many upvotes there
He changed the column names later
but that is just a minor problem
ok got to go
see u guys late
later
13:02
I agree with @akrun (I was the first to upvote maRtin answer), the accepted answer is nice but maRtin answer is simple and correct and, unlike me, he directly understood the OP request (I didn't see the multiple variables problem at first)...
13:46
@DavidArenburg thanx for inviting me :-)
@Jaap Hi actually you were invited by @zx8754 :)
@zx8754 I don't consider myself a rising star, but good to hear others do :-)
@DavidArenburg ah, yes i see
So how are you @Jaap
Are you also a PHD/PHD student?
it seems like 90% in R tag are
Besides having the flu for the last couple of days, I'm doing fine.
@DavidArenburg at the moment I'm a PhD student; planning to finish my thesis by the end of the year
I knew it...
13:53
you too?
@Jaap Nope. Finished my studies after Msc. Had enough :)
@DavidArenburg initially I did the same, but after about 10 years the itch for doing academic research became too strong ;-)
@Jaap Really? Interesting
yep, there were several reasons why I didn't start with a PhD immediately: 1) I didn't have a subject about which I was sure I would still be motivated after a couple of years, 2) it paid really poor (and I had a good job offer) & 3) no open spot on the university
@Jaap How old are if I might ask and do you have family?
14:07
@DavidArenburg I'm 43 & living together with my girlfriend
Who is this bgoldst user? I'm not getting the best first impression of him/her this week
@RichardScriven We have lots of these here.
I'm trying to give him the benefit of the doubt but he seems a little arrogant to me
@Jaap Oh so you don't have many obligations I guess. So you can invest in PHD then
@RichardScriven do you have examples?
14:10
Well most recently was what just happened here and he's made some questionable comments under a couple of my recent answers
Maybe he's just anxious and trying too hard. I've done that before
@DavidArenburg yep, having children and doing a PhD is a tough combination (although my brother is doing quite wel in his pHd-project with 3 children)
that looks like a game of ping-pong
you guys are having fun while others are working, it seems ;-). @RichardScriven isn't this bgoldst "your clingy"?...
Hahah, yes it seems so
He's got 4k so he's doing something right. I shouldn't be so critical I guess
the fact that he knows how to use R doesn't make him a right person... and who knows if he acquired his rep in a "respectual" way ;-)
14:26
True, very true
Here's another one. stackoverflow.com/questions/29944969/… I just don't see the point of making the comments in the first place
On a brighter note, I finally got Ubuntu 14.04 working correctly - only three weeks after installing it!
14:48
he must like you and wants to get your attention (also maybe he's a bit of a psycho ;-) ). Congratulations for Ubuntu, I saw a discussion between @AnandaMahto and you about it (I think) but that was indeed not recently...
Thanks. Yeah it definitely wasn't a smooth transition as I previously thought. But it's nice to have easy access to the file system to make changes
I've got to go get my kids.
Have a nice evening/afternoon/night (whatever time it is) ;-)
@CathG c y
@zx8754 you can say hi to your hero now :)
15:07
@RichardScriven nice answer, I seem to keep forgetting the with function
Thanks @Jaap - although both answers are really the same in theory :)
@RichardScriven that's true, but the with-function is easier to read for non-programmers i.m.h.o.
 
1 hour later…
16:42
@DavidArenburg, you must be enjoying Hong Ooi's answer here.
17:47
with a good reason :)
in few years you will be downvoted for it ;)
@JanGorecki I see the smiley, but what is the good reason?
@AnandaMahto He means when data.table will take over the world
18:16
@DavidArenburg, @JanGorecki, Fine. Fine. I've edited in a "data.table" answer. Now I need to see if this "meta effect" thing has any basis at all.
@AnandaMahto This room is too small for a meta effect, partially is because I'm the only one who inviting people (except for Jaap who was on my invitation list anyway)
Though the idea that we are keeping posting answers here in order to get upvotes is also a bit abnormal, from my perspective at least
Call it testing your theories.
What's with the regular stream of R bounty questions recently?
I don't ever remember it staying with 10 bounties open for such a long streak.
@AnandaMahto It seems like people like to though rep lately
this guy with the crystal balls
500 rep for a crystal ball
And poor Shaxi Liver, no one ever wants to help him without a bounty
18:31
Maybe his teacher gave him a crystal ball assignment and he went searching for answers without even trying
@RichardScriven He put a bounty on a question that already had many good answers for 3 years, what do you mean?
I find it amazing that you draw a crystal ball with LaTeX
I dunno. There have been some nice graphical improvements in the last three years
Yeah that Latex answer is nice
18:53
@DavidArenburg That one is a great answer
@akrun Franks answer? I think your ave is nice
I didn't read the "CAR" part earlier
I meant your data.table answer
@akrun Oh, nah its a very common use of by. @Arun answers a lot using this strategy
@DavidArenburg Yes, i know, but you remembered it quick enough..
yeah, nice answers all around. the asker will be persuaded to use data.table now :)

(for some reason that @ didn't ping my mailbox...odd)
18:56
I wounder if there is a way to use group_by( cumsum(X2 == "CAR")) without creating new column
@Frank It is strange you just learnt lapply recently
data.table uses its alot
err, tapply, that is
@Frank oh
what the difference :)
@Frank I was also surprised to know that you never learned ave
btw, ave is very similar to mutate or := but less efficicent
heh, see -- you have probably never had any use for it either. it's a by group operation: tapply(object,grouper,function)
also: no knowledge of mutate (yet)
18:59
@Frank I know what's tapply is, I was just kidding
ah ok :)
I have all the *apply family familiarized very well, especially when I've asked a question once while trying to prove its not vectorized and had to dig into the source
@zx8754 btw, I hope you weren't insulted or something
@DavidArenburg After you posted a dplyr method, you are getting more votes.
@akrun I should have got them all in the first place :)
@akrun I think there is a good new regex question right up your alley
I think zx8754 is going to handle it
19:04
@akrun I thing there are not many R users who can handle this type of regex question
Though I think it will take you 2-3 mins to solve
I didn't look at that question. Can you try the stackoverflow.com/questions/29975596/…
back when i was asking regex questions, Gabor G always seemed to have a function to do it
@akrun I think Frank nailed it again
ok, i'll try to make an answer of it
Hmm, yes, just found it. @Frank consider to post that as an answer. looks good
19:07
ok thanks
GaborG is legendary in R mailing list
@Frank You got a barrage of questions. Good luck!
uh oh, thanks :)
@DavidArenburg sorry was away, what insult was supposed to be insulting me?
@zx8754 about the "your hero one" :)
19:23
no worries, just wanted to say nice words to our new guests. @Jaap is not a hero :P
@akrun hmm I'm getting some type mismatch error when doing setkey(setDT(main), date, name, value)[J("2015-01-01 07:44:00","bob",1)]
@akrun I told you will be able to handle the regex question. What's i btw? I was trying something like stri_extract_all(s, regex = "(?<=the)([ A-Za-z]+)") without success
regex is alien to me
@zx8754 me too. But akrun eats regex for breakfast (Hebrew expression)
@DavidArenburg @akrun eats many other things for breakfast
ah, okay, enough tutorial writing for me today
19:44
@DavidArenburg It is for case insensitive. Some explanations are here stackoverflow.com/questions/9655164/regex-case-sensitive
That one was a softball question compared to some of the complex stuff @AvinashRaj and co. handles everyday
@Frank Lucky that I had a single vote left for today.
ah thanks, akrun! i can't remember the last time i ran out of daily votes
20:03
so this backfired, the OP likes the ugly base R solution! stackoverflow.com/questions/29975198/…

« first day (8 days earlier)      last day (3515 days later) »