R programming has several methods for machine learning. With machine learning, you can learn to automatically make better predictions. You are leaving the heavy lifting to the software to figure out. The methods you use are somewhat dependent on the characteristics of the data you are attempting to model.
This chapter will cover machine learning in the following ways:
Organizing your dataset into training and testing sets
Generating a model of your data
Testing the efficacy of your model (with the part of your data allocated for testing)