Articles by Tony Hirst

Visualising F1 Stint Strategies

April 6, 2016 | Tony Hirst

With the new F1 season upon us, I’ve started tinkering with bits of code from the Wrangling F1 Data With R book and looking at the data in some new ways. For example, I started wondering whether we might be able to learn something interesting about the race strategies ...
[Read more...]

Using Jupyter Notebooks to Define Literate APIs

February 2, 2016 | Tony Hirst

Part of the vision behind the Jupyter notebook ecosystem seems to be the desire to create a literate computing infrastructure that supports “the weaving of a narrative directly into a live computation, interleaving text with code and results to construct a complete piece that relies equally on the textual explanations ... [Read more...]

RStudio Clone for Python – Rodeo

December 17, 2015 | Tony Hirst

So have you been looking for something like RStudio, but for Python? It’s been out for some time, but a recently updated release of Rodeo gives an increasingly workable RStudio-like environment for Python users. The layout resembles the RStudio layout – file editor top left, interactive console bottom left, variable ...
[Read more...]

Doodling With 3d Animated Charts in R

July 22, 2015 | Tony Hirst

Doodling with some Gapminder data on child mortality and GDP per capita in PPP$, I wondered whether a 3d plot of the data over the time would show different trajectories over time for different countries, perhaps showing different development pathways over time. Here are a couple of quick sketches, generated ...
[Read more...]

Detecting Undercuts in F1 Races Using R

July 11, 2015 | Tony Hirst

One of the things that’s been on my to do list for some time has been the identification of tactical or strategic events within a race that might be detected automatically. One such event is an undercut described by F1 journalist James Allen in the following terms (The secret ... [Read more...]

Spotting Potential Battles in F1 Races

June 10, 2015 | Tony Hirst

Over the last couple of races, I’ve started trying to review a variety of battlemaps for various drivers in each race. Prompted by an email request for more info around the battlemaps, I generated a new sketch charting the on track gaps between each driver and the lap leader ...
[Read more...]

Scraping Web Pages With R

April 15, 2015 | Tony Hirst

One of the things I tend to avoid doing in R, partly because there are better tools elsewhere, is screenscraping. With the release of the new rvest package, I thought I’d have a go at what amounts to one of the simplest webscraping activites – grabbing HTML tables out of ...
[Read more...]

Wrangling Complex Spreadsheet Column Headers

April 14, 2015 | Tony Hirst

[This isn’t an R post, per se, but I’m syndicating it via RBloggers because I’m interested – how do you work with hierarchical column indices in R? Do you try to reshape the data to something tidier on the way in? Can you autodetect elements to help with ...
[Read more...]
1 2 3 4 5 8

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)