In the last few blogs, we covered the basics of R programming through plots and visualization, then a little bit of theory about distributions and confidence intervals, followed by hypothesis testing and Linear regression. Often in the real world, the data we get is messy and we always need to…