asadoughi / stat-learning

Notes and exercise attempts for "An Introduction to Statistical Learning"
http://asadoughi.github.io/stat-learning
2.13k stars 1.62k forks source link

Adding lab .Rmd to correspond to YouTube Labs #69

Open MichaelChirico opened 8 years ago

MichaelChirico commented 8 years ago

Was following along the YouTube series and noticed they started using .Rmds in the Chapter 6 Labs, and the commands used there are in dissonance with the "Chapter 6 Lab" found elsewhere. Couldn't find this .Rmd anywhere online (though I did find the HTML output here), so I made it myself.

I've also made a few minor adjustments reflecting best practices, e.g. replacing rep(NA, 19) with numeric(19L) since the latter is declared in the correct type and is ever-so-slightly more efficient (about 10% by my measure).