Tag Archives: rstudio

VIDEO: How (and why) to create an R notebook for data journalism

Notebooks are one of the ways that data journalists document their work, and make it transparent for others to follow and reproduce. In this video — first made for students on the MA in Data Journalism at Birmingham City University and shared as part of a series of video posts — I explain what notebooks are and walk through how to create one in RStudio.

(Check out yesterday’s video on the pros and cons of R in data journalism for an introduction to R in general)

You can read Knuth on literate programming here; more on the pitfalls of “bad Excel”; and the story about the Excel spreadsheet that led to austerity here.

VIDEO: Why is R used by data journalists?

R — along with Python and JavaScript — is one of the most popular programming languages used by data journalists. In this video — first made for students on the MA in Data Journalism at Birmingham City University and shared as part of a series of video posts — I explain what R is and why you might choose to use it rather than spreadsheets alone, or other languages, in your work.

Oh, and a quick caveat: since Colab notebooks were added to Google Drive, I now prefer Python — but it’s a personal thing, and most of this video can be applied to either language.

The talk by FiveThirtyEight’s Andrew Flowers mentioned in this video can be found here.

Continue reading