R programming with Minecraft

Posted to Coding  |  Tags: ,  |  Nathan Yau

The new R package miner is an interface to Minecraft via some simple R commands.

The miner package provides just a few simple functions to manipulate the game world: find or move a player’s position; add or remove blocks in the world; send a message to all players in the world. The functions are deliberately simple, designed to be used to build more complex tasks.

I’m thinking walkable data worlds in Minecraft.

I bought Minecraft for my three-year-old, but he didn’t understand the point when his LEGO bricks were within arm’s reach and there weren’t any funny noises or songs. Maybe the purchase wasn’t a total bust after all.

Here’s the full miner package guide.

Favorites

Life expectancy changes

The data goes back to 1960 and up to the most current estimates for 2009. Each line represents a country.

The Changing American Diet

See what we ate on an average day, for the past several decades.

Divorce Rates for Different Groups

We know when people usually get married. We know who never marries. Finally, it’s time to look at the other side: divorce and remarriage.

Jobs Charted by State and Salary

Jobs and pay can vary a lot depending on where you live, based on 2013 data from the Bureau of Labor Statistics. Here’s an interactive to look.