Supervised Machine Learning for Text Analysis in R