8.3 Packages and data

Load the required packages for this exercise. All the packages are available on CRAN if you need to install them.

library(dplyr)
library(SMCRM) # For the data sets
library(factoextra) # Cluster visualization
library(plotly) # Interactive plotting
library(caret)
library(plyr)

8.3.1 Data

The following code will load the data sets in your global environment. You can rename them once loaded.

data("customerRetentionTransactions")
data("customerRetentionDemographics")