Get startedGet started for free

Feature selection with the combined filter

Now that you've created the zero-variance and missing values filters, put them to work to reduce the dimensionality of house_sales_df. You'll combine the filters and then use the combined filter to remove the low-information features from house_sales_df.

The zero_var_filter and na_filter objects are available for your use and the tidyverse package has been loaded for you.

This exercise is part of the course

Dimensionality Reduction in R

View Course

Exercise instructions

  • Combine the zero_var_filter and na_filter into low_info_filter.
  • Apply low_info_filter to reduce the dimensionality of house_sales_df.
  • Display five rows of the reduced house_sales_df data set.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Combine the two filters
___ <- ___(___, ___)

# Apply the filter
house_sales_filtered_df <- ___ %>% 
  ___(-all_of(___))

# Display five rows of the reduced data set
house_sales_filtered_df %>%
  ___(___)
Edit and Run Code