Classification-based machine learning for trading in R