Data Analysis in R, the data.table Way

Master core concepts in data manipulation such as subsetting, updating, indexing and joining your data using data.table.

Start Course for Free
4 Hours10 Videos37 Exercises60,271 Learners
2900 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

The R data.table package is rapidly making its name as the number one choice for handling large datasets in R. This online data.table tutorial will bring you from data.table novice to expert in no time. Once you are introduced to the general form of a data.table query, you will learn the techniques to subset your data.table, how to update by reference and how you can use data.table’s set()-family in your workflow. The course finishes with more complex concepts such as indexing, keys and fast ordered joins. Upon completion of the course, you will be able to use data.table in R for a more efficient manipulation and analysis process. Enjoy!

  1. 1

    Data.table novice


    Introduction on what exactly a data.table is, how it differs from the traditional data.frame in R, and understanding the general form of a data.table query.

    Play Chapter Now
    Section 1 - Introduction
    50 xp
    Create and subset a data.table
    100 xp
    Getting to know a data.table
    100 xp
    Section 2 - Selecting columns in j
    50 xp
    A data.table of a vector?
    50 xp
    A non-existing column
    50 xp
    Subsetting data.tables
    100 xp
    Section 3 - Doing j by group
    50 xp
    The by basics
    100 xp
    Using .N and by
    100 xp
    Return multiple numbers in j
    100 xp


Introduction to RIntermediate R
Matt Dowle Headshot

Matt Dowle

Author of data.table

Matt Dowle is the main author of the data.table package. Matt has worked for some of the world’s largest financial organizations and has been programming in R for over a decade.
See More
Arun Srinivasan Headshot

Arun Srinivasan

R's data.table co-developer

Arun Srinivasan is originally from Tamilnadu, India. He holds a Bachelors degree in Electronics engineering and a Masters degree in Bioinformatics. He started using R in 2010 and has contributed to R's data.table package since late 2013. He currently lives in London, where he works as a developer and analyst in Finance. He has a passion for developing tools and algorithms facilitating analyses on large data.
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