12.2 Exercise
Write a recipe for the Sale_Price ~ .
variables that:
- Adds a novel level to all factors
- Converts all factors to dummy variables
- Catches any zero variance variables
- Centers all of the predictors
- Scales all of the predictors
- Computes the first 5 principal components
Save the result as pca_rec