The interesting R implementation for Normalization and Standardization is here now.
Here we check whether we need to go for Normalization or Standardization, for which we take one variable and go for histogram and check whether that variable is skewed or normally distributed. see below
Normality Check
Checked for price and Distance After Executing above , we know that variables are skewed, Standardization is not possible. So we opt for Normalization.
Dataset before Normalization
Code Executed for Normalization
Dataset after Normalization
Standardization code
Dataset After Standardization
Here we end up with Feature Scaling, and we will head up with sampling Techniques in next page.