Saves the prediction dataframe to RDS

savePrediction(prediction, dirPath, fileName = "prediction.rds")

Arguments

prediction

The prediciton data.frame

dirPath

The directory to save the prediction RDS

fileName

The name of the RDS file that will be saved in dirPath

Details

Saves the prediction data frame returned by predict.R to an RDS file and returns the fileLocation where the prediction is saved