Mastering-Data-Analysis-with-R icon indicating copy to clipboard operation
Mastering-Data-Analysis-with-R copied to clipboard

Chapter 2 - Line 35 code does not work now

Open learn2manage opened this issue 10 years ago • 1 comments

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

learn2manage avatar Dec 08 '15 12:12 learn2manage

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.

daroczig avatar Dec 08 '15 18:12 daroczig