« first day (687 days earlier)      last day (2488 days later) » 

5:39 AM
@mnel Thank you mate, that was waaay beyond my meagre R skills ;D
 
@dmvianna I've edited the answer to include a far simpler approach
I had fun trying to work out how to parse the arguments. Was a good challenge for me.
 
@mnel Well, count on me to keep you entertained then!
 
 
4 hours later…
10:10 AM
I'm impressed by the number of good solutions to my circle problem: stackoverflow.com/questions/12264841/… Now I can't decide which one to choose as the best answer.
 
 
2 hours later…
12:26 PM
We really should @JoshuaUlrich to task for pricking user's plyr bubble one by one.
 
 
1 hour later…
1:32 PM
@DirkEddelbuettel please do. I like the extra attention.
@DirkEddelbuettel I assume you're referring to my response to the plyr progress bar tweet?
 
@JoshuaUlrich Yup. Which was nicely done.
 
Some people like progress bars, some people like their code to finish ASAP. To each their own. :)
 
2:05 PM
When asked why he created testthat, its author responded 'RUnit did not have progress bars'. And I rest my case.
 
"You either author a single hit package and retire a hero, or you live long enough to author many popular packages and see yourself become a villain."
 
Source?
 
cat(rep(NA,10), "Batman!\n")
 
The original was "You either die a hero, or live long enough to see yourself become the villain."
And I think you're missing 6 NA's, @JoshuaUlrich (I had to sing it out loud to be sure.)
Or perhaps you just have two extra...I can't remember exactly how it goes now.
 
10 is even and fit nicely on my screen
 
2:51 PM
So....the wife has to take a stats class for her degree, and there's a separate computer lab section she has to do in R.
I'm way more excited about this than she is.
 
 
2 hours later…
4:36 PM
Where are all the Europeans? I thought holiday ended in August...
 
4:48 PM
Mornin' folks, does anyone know of common naming conventions for slots in an S4 classes and/or fields in reference classes?
 
What do we do about this one?
0
Q: R ODBC connection

E.D.I have had my machine rebuilt, so had to re-install everything. I have created both system and file DSN's to my SQL server data source (using windows control panel), but odbcConnect cannot find the datasource name. channel <- odbcConnect("ISLWODS_PUBLIC") Warning messages: 1: In odbcDriverCon...

 
5:06 PM
@RomanLuštrik I already voted to close as Too Localized as soon as I saw the OP's comment.
@cbare I just ran attr(joran, "Knowledge of S4 classes") and it returned NULL. Sorry!
 
5:23 PM
@joran, that's OK, applying the same function to me returns epsilon, for arbitrarily small values of epsilon
 
6:15 PM
A vague question...
0
Q: Figure 2.5 in Elements of Statistical Learning

Wei LiI met some difficulty in calculating the Bayes decision boundary of Figure 2.5. In the package ElemStatLearn, it already calcualted the probability at each point and used contour to draw the boundary. Can any one tell me how to calculate the probability? Thank you very much. In traditional Bayes...

 
6:40 PM
@RomanLuštrik Vague but I'm adding an Answer now...
 
Great, I couldn't make any of it.
 
The book itself is freely available here:
Worth a read
 
@GavinSimpson Oh golly what an English understatement
 
@DirkEddelbuettel rather ;-)
 
Perhaps Dirk meant that saying one of the most awesome books of all time was "worth a read" was a wee understatement? ;)
 
6:58 PM
@joran I know. "rather" would be the understated way an Englishman would have concurred with Dirk's statement.
I like the book so much I bought both editions out of my own pocket even though I knew the pdf of second edition was available.
 
7:13 PM
@RomanLuštrik Bugger, slightly misread example and the ElemStatLearn package doesn't show how to compute the Bayesian classifier and naiveBayes() in e1071 doesn't give the same results...
 
I see how that could be confusing.
Oh, now I remember. That book has a quote I use in my email signatures. "In God we trust, all others bring data."
 
 
2 hours later…
0
Q: lapply slower than for-loop when used for a BiomaRt query. Is that expected?

ptocquinI would like to query a database using BiomaRt package. I have loci and want to retrieve some related information, let say description. I first try to use lapply but was surprise by the time needed for the task to be performed. I thus tried a more basic for-loop and get a faster result. Is that...

 
POSIXct is retained with an identical acast call...
 
Puzzeling question about an apply loop taking almost twice as long than a for loop
In performing database queries
There are 8 function calls which take about 2 secs each
So the majority of time is spent is just a few function calls
I have a hard time imagining this being anything else than random lag from the database
Any ideas?
 
@PaulHiemstra I didn't look closely, but it didn't look like the function in the loop was storing any results.
 
So the OP just performs 8 identical database queries
@JoshuaUlrich how could this xplain the difference?
 
9:14 PM
@PaulHiemstra My thought was that you'd spend less time (re)allocating memory, but I don't think that could account for the time difference.
 
It might be worth a benchmark version to confirm the time difference since it was fairly small...
 
@JoshuaUlrich Would be nice to check if the function the OP uses in lapply yields constant results, or if there is a large amount of variation
 
@PaulHiemstra My new guess is DB caching.
 
It is strange that with lapply the run time is nicely 10 times the individual database call
And in the for loop it is not the case, while it still calls getBM 10 times
@JoshuaUlrich execellent suggestion
 
@PaulHiemstra Although I wasn't really intending to claim that that link solved their problem, I stand corrected about it being involved at all. (It wasn't really an unreasonable suggestion, though, given that I'm unfamiliar with what that particular function was doing.)
 
9:25 PM
@joran no problem, it just struck me as odd that there should be a difference when infact the function calls made where not different
@JoshuaUlrich I posted an answer with database caching as a possible culprit
And acknowledged where I got this wisdom ;)
A comment by Martin Morgan also suggest that getBM queries a webservice, which shows large variations in response time
 
@PaulHiemstra Or you deferred blame, depending on whether or not I'm right. Martin Morgan commented on the question, and I would trust him more than my guess.
 
Many webservices include caching of results
So I suspect.it could play a role
But chances are big this nithing to o do with lapply versus for loops
Sry, typing on a tablet is a mess
 
@PaulHiemstra: +1 for making it look like I know what I'm talking about.
 
:)
Should we edit the title of the question, or just close it as being too localized
 
I'd wait a bit to see if that's truly the issue. If it is, then it's too localized.
 
@PaulHiemstra Yes, I already downloaded and looked at the source. :)
 
Lol
No wonder the times vary
Have you extracted any data?
 
I didn't install it. I just looked at the code.
 
Ok
The op could just call the function getBM a bunch of times
 
I installed it in my brain, but my internet connection is slow.
 
9:41 PM
And if the timings vary wildly we have our answer
@JoshuaUlrich does your brain show any variation in connecting to these webservices ?
;)
 
It shows exactly zero variation.
 
 
2 hours later…
11:53 PM
New ggplot2!
groups.google.com/forum/?fromgroups=#!topic/ggplot2/voXzh-b3M4A "Charlotte Wickham. Fixes #434" - is she related to Hadley?
 
@AriB.Friedman yes -- his sister see here
 

« first day (687 days earlier)      last day (2488 days later) »