Code for data analytics in R.