« first day (2409 days earlier)      last day (766 days later) » 

1:44 AM
There mercy-closing votes please for a 'can no longer reproduce' post: stackoverflow.com/questions/44145575/…
 
@Spacedman the answer is to not fetishize coding, just git 'er done. it is not as big a deal as the growing "learn to be a data sci guru" industry is making out..
fwiw, i disagree with @hrbrmstr that those are idiomatic. in tidyverse, and i think data.table as well, the right idiom is to make a file table, put the file metadata as columns there, and then left join it in later
 
 
5 hours later…
6:54 AM
@Frank The only truly idiomatic R way is to put whatever you are doing in functions that do one job and then if you want to change the guts of the function from tiddlyerse to dt to base then you can without mucking up everything else....
 
Are we kidding?? People always use [rstudio] tags and for once that it would have make sense, it is tagged with [R] ... :(((
 
7:10 AM
@digEmAll heh. I've just been zapping a few rogue [rstudio] tags. Maybe I'll put one back on this question.
 
7:56 AM
@Spacedman: yeah... one close vote left and I can go back to my cave to sharpen my spears
 
 
4 hours later…
11:40 AM
@digEmAll I would think that RStudio questions (apart from problems with addins) are off topic anyway.
 
@Spacedman :-P a pipe operator? I thought that would be :-Pipe~~~
 
Hahhaahhaa. Just found this gem adjacent to a commit from R Core: The situation with Java support on macOS is messy.
I would be willing to extend that along either one of those two dimensions: across OSs for that language, and across languages on that one OS.
Today's change if anyone cares.
 
ROFL talking about stating the obvious...
 
12:00 PM
 
 
2 hours later…
2:26 PM
I like the tweetstorm by @csgillespie et al but I do wonder if O'Reilly and Strata are by now a fully owned subsidiary of Cloudera and its ilk.
We have Szilard keynote last week on No Bullshit Data Science which was as golden as you'd expect, well research and delivered and of course critical of vendor hype.
And oh so surprisingly his submissions to these style of conferences tend to get rejected. "No critical voices here."
Videos from the conference as soon as I find some time to update the website. Probably on the weekend.
 
I'm trying to implement Locality Sensitive Hashing (en.wikipedia.org/wiki/Locality-sensitive_hashing). To do this, I want to compute a minhash (matthewcasperson.blogspot.com/2013/11/minhash-for-dummies.html). That article mentions an implemention in Java. Specifically, the java hashCode() function (tutorialspoint.com/java/java_string_hashcode.htm).
So I'm trying to find an implementation of hashcode in R.
 
@DirkEddelbuettel which conference is that?
 
I can see www1.maths.lth.se/matstat/bioinformatics/software/R/library/… defines a function, but this doesn't work for strings with large nchar
The Java implementation has integer arithmetic. Is there anything similar in R?
Or can somebody point me to a hashing function that I can use?
The functions in digest does something a little bit different, AFAICT
 
3:03 PM
@Spacedman StrataLondon, I believe. Or StrataData, Or Strata$WILDCARD. Or Strata and TED have a baby. I really don't care THAT much. Check the timeline of our very own @csgillespie
 
@DirkEddelbuettel O I think I misread that as StataLondon
 
3:22 PM
OK, I've built it
hashCode <- function(x){

  char_to_int <- function(x) { strtoi(sapply(x, charToRaw), 16L) }
  as.java_integer <- function(x) {
    imin <- -2147483648
    imax <-  2147483647
    irange <- imax - imin + 1
    imin + (x - imin) %% irange
  }

  integer_powers <- function(n, p = 31){
    stopifnot(is.integer(n))
    if(n == 1) return(0)
    if(n == 2) return(p)
    x <- rep(0, n)
    x[1:2] <- c(1, p)
    for(i in 3:length(x)){
      x[i] <- as.java_integer(x[i-1] * p)
    }
    rev(x)
  }

  integer_sum <- function(x){
Yuck, lots of loops. And it will only work for ASCII characters. This is a job for Rcpp, I think.
 
3:54 PM
@Andrie Asymptotically every job is.
 
@DirkEddelbuettel Unless your asymptote goes all the way to assembly language...
2
 
Experimental new package: strict reduces some common frustrations by making #rstats a little stricter — https://github.com/hadley/strict
So it refuses tiddlyverse packages?
 
@Andrie I've used troydhanson.github.io/uthash/userguide.html in the past (pure C project, no R)
@DirkEddelbuettel There is a large component of selling "solutions" at Strata. It's an interesting contrast to an academic conference. I tend to only go to about 30% of talks for sanity purposes.
Also stunned at the general sillyness going around. Quote from a talk: "I used Spark inside of R because it's more flexible"
 
4:19 PM
@DirkEddelbuettel oh great. a global strict setting. do library(strict) and break all your code and everyone elses code?
hmm doesn't apply to code in packages loaded via devtools...
 
5:02 PM
@DirkEddelbuettel I would have guessed the opposite, actually: Hadley's "strict mode" would only allow tidyverse packages and no others. ;)
 
5:57 PM
@Spacedman As much fun as it is to make fun of pipes and all, I think this is a good concept while developing packages. Maybe we should fork it and add strict_no_pipes or some such.
 
6:29 PM
@BrodieG Linters definitely have legs. But I guess there may be disagreement about what should, or should not, be allowed, cf the 'idiomatic code' blog post by Bob Rudis.
 
 
2 hours later…
8:28 PM
I'm eager to find out what "dynamic point tunneling" means:
0
Q: How to have dynamic point tunneling on R ggplot facets?

Léo Léopold Hertz 준영I would like to have a dynamic "point tunneling" i.e. the darker gray area drawing around the neighborhood of the points. I think the great answer of the thread ggplot legends - change labels, order and title is based on experimental values defined in dtt of the thread. Code which makes a recta...

 
8:47 PM
<rolls eyes>
@joran Maybe, can you give an example about geom_smooth, please. — Léo Léopold Hertz 준영 1 min ago
 

« first day (2409 days earlier)      last day (766 days later) »