Coding

20 posts
Field Guide to the R Ecosystem

If you’re looking to acquaint yourself with R — the non-coding aspects of the language — the brief Field Guide to the R Ecosystem by Mark Sellers might help. Perhaps, you’re a hobbyist R user, who’d like to provide more information to your company in order to make a case for adopting R? Maybe you’re part of a support team who’ll be building out infrastructure to support R in your...

0 0
Introduction to regular expressions

If you want to analyze bodies of text, it’s a good to know how to use regular expressions. That way you can programmatically extract complex text patterns instead of marking and encoding items manually. Thomas Nield for O’Reilly provides an introduction: Many data science, analyst, and technology professionals have encountered regular expressions at some point. This esoteric, miniature language is used for matching complex text patterns, and looks mysterious and...

0 0
R data structures for Excel users

Introducing yourself to R as an Excel user can be tricky, especially when you don’t have much programming experience. It requires that you switch from one mental model of the data that exists in an interactive spreadsheet to one that exists in vectors and lists. Steph de Silva provides a translation of these data structures for Excel users. Tags: Excel, R

0 0
Drawing with noise

This looks like a fun Processing tutorial by Etienne Jacob. Use noise to draw organic-ish loopy GIFs. I bet the logic could be ported to R. Tags: GIF, noise, Processing

0 0
Scrollama.js, a JavaScript library for scrollytelling

Russell Goldenberg released Scrollama.js in an effort to make scrollytelling more straightforward to implement. Scrollytelling can be complicated to implement and difficult to make performant. The goal of this library is to provide a simple interface for creating scroll-driven interactives and improve user experience by reducing scroll jank. It offers (optional) methods to implement the common scrollytelling pattern to reduce more involved DOM calculations. For lack of a better term,...

0 0
R programming with Minecraft

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...

0 0
The Hitchhiker’s Guide to d3.js

Ian Johnson provides some good direction for those looking to get their feet wet with d3.js. This guide is meant to prepare you mentally as well as give you some fruitful directions to pursue. There is a lot to learn besides the d3.js API, both technical knowledge around web standards like HTML, SVG, CSS and JavaScript as well as communication concepts and data visualization principles. Chances are you know something...

0 0
Making annotation easier with d3.js

There are two main reasons annotation is often a challenge. The first is that writing copy that is succinct with the right amount of detail is tricky. The second is that implementation can be a pain, because you always have to muck around with placement in an ad hoc fashion. To help out with the second reason, Susie Lu developed d3-annotation. It takes away much of the main of adding...

0 0
R for Excel users

For Excel users getting started with R, pain oftentimes finds its way into the learning process. Gordon Shotwell feels your pain and provides a primer to shifting to a different approach to your data. At the beginning, when you are trying to accomplish simple things like balancing a budget or entering some data by hand, R is definitely harder to learn than Excel. However, as the task gets more complex,...

0 0
Interpolate your data for animation

The tweenr package in R, by Thomas Lin Pedersen, helps you interpolate data for easier animated transitions. tweenr is a small package that makes it easy to interpolate your data between different states, specifying the length of each change, the easing of the transition and how many intermediary steps should be generated. tweenr works particularly well with gganimate but can be used for any case where interpolation of data is...

0 0