« first day (689 days earlier)      last day (2486 days later) » 

2:09 AM
@mnel, new post to keep you entertained: stackoverflow.com/questions/12310810/…
 
@dmvianna -- hTH
@dmvianna -- all to do with $ and [[. An important difference in how R interprets. Often safer to use [[ in functions
 
2:37 AM
@mnel I wasn't aware one could use column name and [[ as synonyms that way. That's a very useful tip, thanks!
Or maybe I did, but it didn't sink in properly blush
 
@dmvianna No worries -- it is a subtle point, but important\
 
3:14 AM
@mnel, a side question: in that function, if I want to include the following line
print(paste0("Warning: column not found in ",deparse(substitute(x))))
in the else clause, how can I make it print the object name? I'm using that function inside lapply, and that would be a nice warning to have.
 
 
2 hours later…
5:22 AM
@dmvianna, my match.call solution your excel / function question should be adaptable.
 
@mnel, so far, I am only able to print "warning: column not found in [[x]]" and similar stuff
 
@dmvianna It will get messy trying to reference names from within a call to lapply - values are passed without names (I think). - they may not be recoverable. It might be worth a question, or you could look at this one for inspiration
 
5:37 AM
@mnel I thought so, but it was worth asking. Thanks
 
 
4 hours later…
9:30 AM
I wonder what's the idea behind diagonal lines through legend key? stackoverflow.com/questions/12314584/…
Is summer of love over? This one is asking about very very basic subsetting. stackoverflow.com/questions/12315118/qqploting-subset-of-data-r
 
9:43 AM
@RomanLuštrik I edited my answer
 
Yes
 
10:02 AM
eh up
 
 
1 hour later…
11:10 AM
2 more.
 
 
2 hours later…
1:39 PM
That Elizabeth character is coming along nicely. A fully worked example posted this time.
1
Q: Adding table within the plotting region of a ggplot in r

ElizabethI would like to add a table of the coordinates of highlighted site in a ggplot. Using a previous question as example data: set.seed(1) mydata <- data.frame(a=1:50, b=rnorm(50)) ggplot(mydata,aes(x=a,y=b)) + geom_point(colour="blue") + geom_point(data=mydata[10:13, ], aes(x=a, y=b), colour="r...

 
Back at work, @GavinSimpson?
 
@Andrie Have been for almost 2 weeks but Emma has been ill, I now feel pretty crappy (so hard to concentrate on work stuff) & was out at Paralympics yesterday.
 
Sorry to hear about Emma. Yesterday was a top day at the Paralympics. I watched some of it on TV.
 
@Andrie M and I were at the Excel; watched sitting volley ball, the team table tennis & wheelchair fencing. All totally brilliant. Lots of support for Team GB too. We saw some of the track events on the big screens in the spectator areas at the Excel.
One for the data.table users
3
Q: How do I do a negative / nomatch / inverse search in data.table?

FarrelWhat happens if I want to select all the rows in a data.table that do not contain a particular value in the key variable using binary search? By the way, what is the correct jargon for what I want to do? Is it "nojoin"? Is it "negative selection"? DT = data.table(x=rep(c("a","b","c"),each=3), y=...

@Andrie Why'd you delete your Answer? For other people with similar issue good to have both options as not all 'FUN's will be or can be vectorised.
 
1:56 PM
Since it's very similar to your answer. Not much point in having duplicates?
 
@Andrie But the key difference is that yours will work when FUN is not vectorised. I took the OPs Q to be more general than how do I generate a sequence in R from a function.
@Andrie Just planning my month; will you be attending the LondonR meeting on the 18th?
 
OK, undeleted.
Yes, that's the plan. It's always a good laugh, and useful for connecting to people.
 
I agree, both solutions should be present.
 
@Andrie Great. 90% sure I'll be there. May be my last one before departing for the other side of the pond. (Just need to agree terms with M.)
 
2:13 PM
@GavinSimpson Answer added
 
@Andrie good stuff, Must learn more data.table stuff
 
Oh, no!
The cool-down period ends today
 
@Andrie next year.
 
Oh, good! i'm always quick to see bad news!
 
2:17 PM
I was looking at that '13 and pondered the implication.
 
@JoshuaUlrich Hysterical. Never heard of suspensions. Was that because of his deletion spree?
 
I wonder what's the age of that user. Based on his description I would have to venture a guess "not many years".
 
@DirkEddelbuettel /me shrugs. Probably. Someone got suspended for 1-2 weeks for down-voting ~10 of my top-voted answers once (he thought I was "following" him and down-voting his questions).
...and blamed me for the suspension (after I warned them that serial down-voting could lead to a suspension).
 
/me snickers that my foolproof randomized downvoting bot will never get caught
 
@RomanLuštrik Old enough to be a father; which now I think about it isn't that old really if your sample is some places up north (in the UK)
 
2:23 PM
That means >~ 13 or whenever the hell sperm becomes viable.
 
Get this: The OP first accepted my answer, then rewrote a new answer that incorporates mine, and accepted his own answer!
1
Q: Formatting histogram x-axis when working with dates using R

jpolonskyI am in the process of creating an epidemic curve (histogram of number of cases of a disease per day) using R, and am struggling a little with formatting the x-axis. I am aware that ggplot gives very nice graphs and easily manipulatable axes ( Understanding dates and plotting a histogram with gg...

 
@Andrie oldest trick in the book!
 
(which is partially fair, since he also included a lattice solution)
 
Lattice solution? Where?
 
@Andrie hahahahahaha, sucker!
 
2:27 PM
@Andrie You think that's bad. How about an analogous case, but involving an R-core member: stackoverflow.com/a/12135317/967840
 
@Justin From which I infer that a) it's happened to you, or b) you've done it?
 
I see base hist and ggplot (with maybe what appears to be lattice colors).
 
Happened a few times just recently...
 
@JoshuaUlrich Ahah, now I know for sure you've changed your name, @jpolonski
 
@DirkEddelbuettel The longer you run it the smaller the potential pool of culprits will become...
 
2:29 PM
@RomanLuštrik Sorry, my mistake. it's base
 
Eh, don't worry, we're not splitting hairs.
 
@DirkEddelbuettel Unless you're are being totally, down right dastardly and allowing it to potentially downvote your own answers whilst prohibiting it from doing so on a certain user's account
 
Splitting heirs, on the other hand... (see the pun?)
Hum, that was way more funny inside my head...
3
 
@RomanLuštrik but thanks for sharing
 
@RomanLuštrik At least you helped us laugh at you.
 
2:35 PM
@Andrie If it makes you feel any better, he lost 2 rep for unaccepting (so neutral as he'd gained 2 for accepting your answer) and didn't gain anything for accepting his own answer. He's -7 on the day now
 
@JoshuaUlrich Oh good, then it came out right.
 
3:14 PM
i'm right about square matrices, right?
0
Q: Split a 80000*900 non-singular binary (0,1) matrix into two non-singular matrix

frespiderCan some one give me an idea of how I should split a 80000*900 non-singular binary (0,1) matrix into two non-singular matrix. Where first non-singular can take (5 to10)% form the original matrix and the 2nd matrix have the rest? However, I want make sure the matrix are still non-sigular. I would...

 
@JoshuaUlrich @Andrie Wow, a 1yr suspension is pretty long. Most of the ones I've heard about are in the 7-90 day range.
 
@joran The longest there is. "Depending on the severity of the problem behavior — and at the complete discretion of the moderator — your account will be placed in timed suspension for anywhere from 1 to 365 days."
 
He musta been having a really bad day!
 
who's been a naughty boy?
 
1 hour ago, by Joshua Ulrich
FYI: http://stackoverflow.com/users/1290723/
 
3:29 PM
cant see what he's done...
 
@Spacedman He called @GavinSimpson unsaintly
 
@GSee IIRC that was @JoshuaUlrich
 
on the chat?
 
@Spacedman I think the mods have undone most of his rampage, deleting his Answers etc
 
oh right, because all that is left looks very good
 
3:32 PM
@GSee Or maybe it was @Andrie ?
 
@Spacedman If you really want to dig into it, you can start here: chat.stackoverflow.com/transcript/message/5172763#5172763
You get to use your imagination as to what comments he has deleted
 
heh
 
This should also give you an idea of what he was doing: stackoverflow.com/posts/11004901/revisions
 
3:54 PM
Is there an easy way to get standardised regression coefficients from lm?
I know I can do the math, but have I overlooked something simple?
 
@Andrie rseek.org points to package sensitivity, inter alia ...
 
@GavinSimpson That was me. I've never seen you get bothered before.
 
@JoshuaUlrich 99.9% of the time I don't. Think his sarky comments on previous visits to the chat room (which all seemed to revolve around him not getting enough upvotes) + his reaction to my post here that flipped me over the edge.
I'm all calm now though
 
@Spacedman Do you have opinions about the desirability (and if so preferred approach) to the patch we're discussing? gis.stackexchange.com/questions/32732/…
 
4:10 PM
i'd have to read and digest and kinda short for time right now...
 
@Spacedman to say there's no rush is an understatement...take all the time you want.
 
4:26 PM
Hey hadley -- er, @DirkEddelbuettel, .each_col()? .each_row()? Who named those?
 
4:55 PM
@GSee The underscore fairy?
 
@Andrie By standardised you mean so you can compare effects? Standardise the covariates via scale() then fit via lm().
 
@GavinSimpson Yes, that's correct. That's also what I've done. I'm trying to replicate a case study of correlated component regression, but haven't yet been able to get the same results as in the case study.
 
5:19 PM
@DirkEddelbuettel Isn't that just a synonym for Hadley?
 
 
3 hours later…
7:54 PM
Wow:
0
Q: R: specify directory with setwd()

ThePrincessI understand that in R to specify my working directory to mkdir we should do: setwd("~/dir1/dir2/mydir") ,if mydir is under dir2 and dir2. If mkdir is an unique directory name, is there way to specify the working directory without stating dir1/dir2 ? Thanks

 
@DirkEddelbuettel who knows
 
Wow ^^
I need a good juicy question to answer... one that requires some research that's been voted up but still no viable answer... And, no, not private methods in ref classes. :P
 
8:10 PM
Wow!
 
8:29 PM
She also never accepted a single answer.
 
 
1 hour later…
9:36 PM
Ha, looks like I'm connected to the para-olympic games as well.
Turns out I helped peel chestnuts (it was at a student party) to a guy named Darko Đurić who was 5th in swimming.
 
9:52 PM
Would this post (stackoverflow.com/questions/12324813/…) be considered a duplicate of this one (stackoverflow.com/questions/1826519/…)?
 
10:20 PM
-3
Q: How can I get a Makefile from an existing R package?

StephanI have had enough of R's utterly idiotic memory management. However, I quite like the GBM package's algorithm performance. So I would like to "rip" out the algorithm away from that R monstrosity and rebuild it as standalone code. Unfortunately the R philosophy of "fudge it until it's unuseab...

Someone is bashing R
Quick, gather the pitchforks and feathers
Nasty question...at least in its tone
 
Well he just relented a little
But then ... if you understands so little as to have to ask this question, he won't get far "ripping out the code" as he desires.
 
@DirkEddelbuettel Especially when I already provided a perfectly acceptable solution to their earlier question.
Does anyone know what has two thumbs and is going home?
<-- This guy!
 
@DirkEddelbuettel we all started somewhere. What bothered me is that he blamed R in stead of himself.
 

« first day (689 days earlier)      last day (2486 days later) »