Skip to main content
HomeRSupervised Learning in R: Classification

Supervised Learning in R: Classification

23 reviews

In this course you will learn the basics of machine learning for classification.

Start Course for Free
4 Hours14 Videos55 Exercises
87,374 LearnersTrophyStatement of Accomplishment

Create Your Free Account



By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
GroupTraining 2 or more people?Try DataCamp For Business

Loved by learners at thousands of companies

Course Description

This beginner-level introduction to machine learning covers four of the most common classification algorithms. You will come away with a basic understanding of how each algorithm approaches a learning task, as well as learn the R functions needed to apply these tools to your own work.
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more
Try DataCamp for BusinessFor a bespoke solution book a demo.
  1. 1

    k-Nearest Neighbors (kNN)


    As the kNN algorithm literally "learns by example" it is a case in point for starting to understand supervised machine learning. This chapter will introduce classification while working through the application of kNN to self-driving vehicle road sign recognition.

    Play Chapter Now
    Classification with Nearest Neighbors
    50 xp
    Recognizing a road sign with kNN
    100 xp
    Thinking like kNN
    50 xp
    Exploring the traffic sign dataset
    100 xp
    Classifying a collection of road signs
    100 xp
    What about the 'k' in kNN?
    50 xp
    Understanding the impact of 'k'
    50 xp
    Testing other 'k' values
    100 xp
    Seeing how the neighbors voted
    100 xp
    Data preparation for kNN
    50 xp
    Why normalize data?
    50 xp

In the following tracks

Associate Data Scientist in RMachine Learning Fundamentals in RMachine Learning Scientist with R


Collaborator's avatar
Nick Carchedi
Collaborator's avatar
Nick Solomon


Intermediate R
Brett Lantz HeadshotBrett Lantz

Senior Data Scientist at Sony PlayStation

Brett Lantz currently works as a data scientist at Sony PlayStation, is the author of Machine Learning with R, and teaches machine learning at the Global School in Empirical Research Methods summer program. After training as a sociologist, Brett has applied his endless thirst for data to projects that involve understanding and predicting human behavior in fields including epidemiology, higher education fundraising, and most recently, the video gaming industry.
See More

Don’t just take our word for it

from 23 reviews
Sort by
  • Garrett S.
    12 months

    Highly recommend

  • Nicolas F.
    12 months

    Excellent and concise overview of these machine learning strategies.

  • Olga` K.
    about 1 year

    Appreciated the coding part of the course - but it definitely requires one to clear the beginner's levels. As far as the theoretical part is concerned - what is covered is sufficient to launch into coding but more encouragement should be done to promote further learning for designing code and then interpreting results. Application to practice is outstanding.

  • Talha T.
    about 1 year


  • Andrew H.
    over 1 year

    Very good course - much to learn and recall

"Highly recommend"

Garrett S.

"Excellent and concise overview of these machine learning strategies."

Nicolas F.


Talha T.

Join over 13 million learners and start Supervised Learning in R: Classification today!

Create Your Free Account



By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.