An Introduction to Statistical Learning with Applications in R by Gareth James, Daniela Witten, Trevor Hastie and Robert Tibshirani.
From the webpage:
This book provides an introduction to statistical learning methods. It is aimed for upper level undergraduate students, masters students and Ph.D. students in the non-mathematical sciences. The book also contains a number of R labs with detailed explanations on how to implement the various methods in real life settings, and should be a valuable resource for a practicing data scientist.
R code, data sets, the full text in pdf. What more could you want? 😉
The text is published by Springer, who is allowing the full text to be posted online.
Reward good behavior by publishers. Recommend this text to your librarian for acquisition.
I first saw this in a tweet by One R Tip a Day.