Skip to main content

Feature Engineering in R

Learn a variety of feature engineering techniques to develop meaningful features that will uncover useful insights about your machine learning models.

Start Course for Free
4 Hours13 Videos44 Exercises3,794 Learners3500 XP

Create Your Free Account



By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies

Course Description

Feature engineering helps you uncover useful insights from your machine learning models. The model building process is iterative and requires creating new features using existing variables that make your model more efficient. In this course, you will explore different data sets and apply a variety of feature engineering techniques to both continuous and discrete variables.

  1. 1

    Creating Features from Categorical Data


    In this chapter, you will learn how to change categorical features into numerical representations that models can interpret. You'll learn about one-hot encoding and using binning for categorical features.

    Play Chapter Now
    Introduction to feature engineering in R
    50 xp
    Examples of feature engineering
    50 xp
    One-hot encoding
    100 xp
    Binning encoding: content driven
    50 xp
    Leveraging content knowledge
    100 xp
    Converting new categories to numeric
    100 xp
    Binning encoding: data driven
    50 xp
    Categorical proportions by outcome
    100 xp
    Reducing categories using outcome
    100 xp
  2. 2

    Creating Features from Numeric Data

    In this chapter, you will learn how to manipulate numerical features to create meaningful features that can give better insights into your model. You will also learn how to work with dates in the context of feature engineering.

    Play Chapter Now
  3. 3

    Transforming Numerical Features

    In this chapter, you will learn about using transformation techniques, like Box-Cox and Yeo-Johnson, to address issues with non-normally distributed features. You'll also learn about methods to scale features, including mean centering and z-score standardization.

    Play Chapter Now


chesterChester Ismayamy-4121b590-cc52-442a-9779-03eb58089e08Amy Peterson


Exploratory Data Analysis in R
Jose Hernandez Headshot

Jose Hernandez

Data Scientist, University of Washington

Jose is a Data Scientist at the University of Washington’s eScience Institute. Jose’s interests include the application of data science methods on sociological and educational data and building open source data tools to facilitate that process. Jose’s research combines theory and practice with data science methods to inform education policymaking. Jose earned his doctorate at the UW, with a focus in statistics and measurement and a Master of Education in policy, also from UW.
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA