Publications by Jonathan Carroll

Bad Neighbours (no, not the movie)

29.04.2016

Another day, another compulsion to see if I can do any better than someone’s solution. This one also comes from the FiveThiryEight Puzzler challenge courtesy of Xi’an The original challenge this time was The misanthropes are coming. Suppose there is a row of some number, N, of houses in a new, initially empty development. Misanthropes are mo...

6465 sym R (2256 sym/8 pcs) 6 img

Bad Neighbours (no, not the movie)

29.04.2016

Another day, another compulsion to see if I can do any better than someone’s solution. This one also comes from the FiveThiryEight Puzzler challenge courtesy of Xi’an The original challenge this time was The misanthropes are coming. Suppose there is a row of some number, N, of houses in a new, initially empty development. Misanthropes are mo...

6467 sym R (2204 sym/8 pcs) 6 img

From a (set.)seed grows a mighty dataset

30.05.2016

Can you predict the output from this code? printStr <- function(str) paste(str, collapse="") set.seed(12173423); x <- sample(LETTERS, 5, replace=TRUE) set.seed(7723132); y <- sample(LETTERS, 5, replace=TRUE) paste(printStr(x), printStr(y)) Okay, the first bit is straightforward; it’s a function that puts two string together into one. Th...

8684 sym R (4040 sym/12 pcs) 8 img

From a (set.)seed grows a mighty dataset

30.05.2016

Can you predict the output from this code? printStr <- function(str) paste(str, collapse="") set.seed(12173423); x <- sample(LETTERS, 5, replace=TRUE) set.seed(7723132); y <- sample(LETTERS, 5, replace=TRUE) paste(printStr(x), printStr(y)) Okay, the first bit is straightforward; it’s a function that puts two string together into one. Th...

8692 sym R (4037 sym/12 pcs) 9 img

Images as x-axis labels

02.06.2016

Open-source software is awesome. If I found that a piece of closed-source software was missing a feature that I wanted, well, bad luck. I probably couldn’t even tell if was actually missing or if I just didn’t know about it. When the source is available, maintained, and documented however, things get fun. We can identify, and perhaps fill gap...

4842 sym R (137 sym/2 pcs) 1 img

Images as x-axis labels

02.06.2016

Open-source software is awesome. If I found that a piece of closed-source software was missing a feature that I wanted, well, bad luck. I probably couldn’t even tell if was actually missing or if I just didn’t know about it. When the source is available, maintained, and documented however, things get fun. We can identify, and perhaps fill gap...

4826 sym R (131 sym/2 pcs) 2 img

Images as x-axis labels (updated)

02.06.2016

They say “if you want to find an answer on the internet, just present a wrong one as fact. Then wait.“ It didn’t take long, actually. Despite my searches while trying to get images into x-axis labels it seems I overlooked a working, significantly less hacky implementation. My Google-fu had in fact let me down. Baptiste Auguié (@tpab / @ba...

2254 sym 2 img

Images as x-axis labels (updated)

02.06.2016

They say “if you want to find an answer on the internet, just present a wrong one as fact. Then wait.“ It didn’t take long, actually. Despite my searches while trying to get images into x-axis labels it seems I overlooked a working, significantly less hacky implementation. My Google-fu had in fact let me down. Baptiste Auguié (@tpab / @ba...

2248 sym 2 img

2016 Australian Federal Election Flexdashboard

01.08.2016

Here in the land down under we’ve finally completed our Federal election. We complain that it seems to go on for too long, but it’s a brief distraction compared to the USA electoral process. I managed to do a small analysis on the votes at a finer scale than I thought would be available, and created a flexdashboard to present the results. Giv...

7247 sym 28 img

2016 Australian Federal Election Flexdashboard

01.08.2016

Here in the land down under we’ve finally completed our Federal election. We complain that it seems to go on for too long, but it’s a brief distraction compared to the USA electoral process. I managed to do a small analysis on the votes at a finer scale than I thought would be available, and created a flexdashboard to present the ...

7372 sym 29 img