When it comes to machine learning algorithm implementations, one of the first tasks you need to do is cleanup/repair a data set. A common issue is when you're working with data that contains missing values. This R Programming script will replace any missing cells with the average of the cells in a particular column: