This step-by-step HR analytics tutorial demonstrates how employee churn analytics can be applied in R to predict which employees are most likely to quit. In this article, we use descriptive analytics to understand the data and patterns, and then use decision trees and random forests algorithms to predict future churn.