A collection of R code snippets for data mining and predictive analytics