How to find two identical Skittles packs?

In a hilarious experiment the anonymous mathematician behind the website Possibly Wrong estimated that s/he only needed to open “about 400-500” packs of Skittles to find an identifical pack. From January 12th up to April 6th, s/he put it to the test and counted the contents of an astonishing 468 packs, containing over 27.000 individual…

Screeps: An AI colony simulation game for programmers

A while back I discovered this free game called Screeps: an RTS colony-simulation game specifically directed AI programmers. I was immediately intrigued by the concept, but it took me a while to find the time and courage to play. When I finally got to playing though, I lost myself in the game for several days…

R tips and tricks

Below are a dozen of very specific R tips and tricks that are either valuable, useful, or just geeky funny. More general helpful R packages and resources can be found in this list. If you have additions, please comment below or contact me! Completely new to R? → Start here! LAST UPDATED: 2019-10-27 Table of Contents RStudio tricks General…

Animated Snow in R

Due to the recent updates to the gganimate package, the code below no longer produces the desired animation. A working, updated version can be found here.  After hearing R play the Jingle Bells tune, I really got into the holiday vibe. It made me think of Ilya Kashnitsky (homepage, twitter) his snowy image in R. –…