R scripts for different machine learning algorithms