Data reporting for investigative journalism
  • Syllabus
  • Schedule
  • Weeks
  • About
  1. Weekly details
  2. 2: Scripted journalism
  • Home
  • Updates

  • Syllabus
  • Course schedule

  • Weekly details
    • 1.1: Intros
    • 1.2: Startup potpourri
    • 2: Scripted journalism
    • 3.1: First steps in data analysis
    • 3.2: A quick tour of verbs
    • 4.1: Filter and sort to find stories
    • 4.2: Creating new from old with mutate
    • 5.1: Summarize with group by
    • 6.1: Matchmaking with joins
    • 7: Tablemaking
    • 8: Cognitive bias in data journalism
    • 9: Build your own database
    • 10: Intro to data vis
    • 11: Intro to GIS and mapping
    • 13: OpenRefine and data cleaning
    • 14: Scraping for stories

  • Course textbook
  • Canvas
  • Slack
  • Other links

On this page

  • Agenda
  • Upcoming deadlines
  • Preparation and learning materials
    • Reading
    • Get to know R and RStudio
  • Follow-up materials

Scripted journalism with Quarto

Using Quarto to combine your programming and your documenation in one place.
Class date

January 17, 2024

Agenda

  • Review of What Would You Do?
  • Questions about the R and RStudio tour and tutorials
  • Replication and documenting your work in Quarto

Upcoming deadlines

Today :

  • What would you do? (Live election results) (9:30 am)
  • In-class lab

Preparation and learning materials

Reading

Estimated time: less than an hour

  • Documenting your work from the textbook

Get to know R and RStudio

This prep might leave you feeling bewildered. Don’t let it get to you. You will get used to the look and feel of the software and some of the technical language soon. You don’t have to internalize all of this. Instead, try to get used to the screen and the process of typing the commands into the computer. You’ll probably get a lot of errors, and that’s fine — they’re not judging you. They’re supposed to be hints, even when they’re red and use words that look like $#u893q#r32.

Note

I usually list the readings in a suggested order. They often build on one another.

  1. Follow along in the textbook chapter, “Getting started with R and RStudio”. This means, “Open RStudio yourself and compare your screens and your commands to the ones in the book.” Don’t just skim this. Take notes and be prepared to go over any points of confusion in class.

Be sure to:

  • Install the packages at the end of the chapter. Depending on how you installed R and RStudio, this could be slow and appear that it’s stopped working. Just go get some coffee and come back in a little while.

  • Watch the Andrew Heiss video shown in the textbook. Ignore how math-centric it is, and just concentrate on his explanation of the screens.

  1. Optional Try the swirl tutorial mentioned in the textbook.

Follow-up materials

  • Creating Quarto documents

  • 22-minute video that goes through what we will go through in class

1.2: Startup potpourri
3.1: First steps in data analysis