An Introduction to Statistical Learning with Applications in R