Exercise

Borrower Region by Year

In this exercise you'll tabulate the data by year and the msa (city vs rural) variable.

Instructions

100 XP

All the required packages are loaded in your workspace.

  • Create a function make_table() that reads in chunk as a matrix and then tabulates it by borrower region (msa) and year.
  • Use chunk.apply() to import the data from the file connection we created for you.
  • Run the rest of the code to plot the changes in mortgages received by region.