Chapter 2 - Line 35 code does not work now
Line 35: df <- read.csv(text = getURL('https://data.consumerfinance.gov/api/views/x94z-ydhh/rows.csv?accessType=DOWNLOAD'))
The result is: { "code" : "not_found", "error" : true, "message" : "Cannot find view with id x94z-ydhh" }
I find that I need to replace the link with below https://data.consumerfinance.gov/views/s6ew-h6mp/rows.csv?accessType=DOWNLOAD
Thank you very much for reporting this issue -- the ID of the dataset indeed seems to be changed. I've just sent an e-mail to Consumer Financial Protection Bureau, I hope to see some response from them soon, and I will submit an official errata for the book when I know how often they update that ID and I will also update the source code here in GitHub as well.