How to use data analysis for machine learning (example, part 1) R-bloggers