Data reporting for investigative journalism
  • Syllabus
  • Schedule
  • Weeks
  • About
  1. Weekly details
  2. 4.1: Filter and sort to find stories
  • 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

Filter and sort for stories

Filtering and sorting in R to find needles and stories
Class date

January 29, 2024

Agenda

  • Review of example data
  • Filtering and sorting lab

Upcoming deadlines

Note

From now on, I won’t list the labs and walkthroughs on these upcoming deadlines.

Wednesday: What would you do? Pick a data source

Sunday, Feb. 4: Sentences for replication project

Preparation

  1. Read:

    • Introduction to Verbs in Depth, including the “Spreadsheet thinking vs. Database thinking” link.
    • Chapter 12, Tidy Data; and
    • Chapter 13, Sorting and Filtering to find stories
  2. Review the documentation of our example PPP data and review the following stories. You don’t have to study them, but be sure to look at them in enough detail to start thinking about the different approaches the reporters took to the same dataset. They also have, as part of the stories, background on the program that might be useful to you.

    • “Hundreds of PPP Loans Went to Fake Farms in Absurd Places”, Derek Willis and Lydia DePillis, ProPublica, May 18, 2021
    • “Six Stories From a Downtown District Show Pandemic’s Uneven Toll”, Anthony DeBarros and Amara Omeokwe, Wall Street Journal, Dec. 31, 2020. (Read this on campus if you haven’t signed up for the free WSJ subscription through the library.)
    • “Banking on Inequity” , RevealNews, from reporting by Laura C. Morel, Mohamed Al Elew and Emily Harris, May 1, 2021.
  3. Read Chapter 14, Select, arrange and filter

  4. Complete the walkthrough on select, arrange and filter, and turn it in to Canvas. If you’re using Safari, remember to fix the file extension in RStudio (remove the .txt) before trying to use it. You could also copy and paste it into a new document in RStudio. Message me if this is troubling you – I don’t want you to get hung up on it.

As always, come prepared to discuss questions, observations, and areas of confusion.

3.2: A quick tour of verbs
4.2: Creating new from old with mutate