R script for analysing the cleaned data.