Machine Learning for Knowledge Discovery with R