Skip to main content
HomeR

Course

Data Manipulation with data.table in R

BasicSkill Level
4.7+
20 reviews
Updated 08/2024
Master core concepts about data manipulation such as filtering, selecting and calculating groupwise statistics using data.table.
Start Course for Free
RData Manipulation4 hr15 videos59 Exercises5,050 XP26,203Statement of Accomplishment

Create Your Free Account

or

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

Loved by learners at thousands of companies

Group

Training 2 or more people?

Try DataCamp for Business

Course Description

The data.table package provides a high-performance version of base R's data.frame with syntax and feature enhancements for ease of use, convenience and programming speed. This course shows you how to create, subset, and manipulate data.tables. You'll also learn about the database-inspired features of data.tables, including built-in groupwise operations. The course concludes with fast methods of importing and exporting tabular text data such as CSV files. Upon completion of the course, you will be able to use data.table in R for a more efficient manipulation and analysis process. Throughout the course you'll explore the San Francisco Bay Area bike share trip dataset from 2014.

Prerequisites

Intermediate R
1

Introduction to data.table

This chapter introduces data.tables as a drop-in replacement for data.frames and shows how to use data.table's i argument to filter rows.
Start Chapter
2

Selecting and Computing on Columns

Just as the i argument lets you filter rows, the j argument of data.table lets you select columns and also perform computations. The syntax is far more convenient and flexible when compared to data.frames.
Start Chapter
3

Groupwise Operations

4

Reference Semantics

5

Importing and Exporting Data

Data Manipulation with data.table in R
Course
Complete

Earn Statement of Accomplishment

Add this credential to your LinkedIn profile, resume, or CV
Share it on social media and in your performance review
Enroll Now

Don’t just take our word for it

*4.7
from 20 reviews
85%
10%
0%
0%
5%
  • Rana Talin
    2 months ago

  • Stanislau
    2 months ago

  • Marcel
    2 months ago

  • Carlos Fernando
    3 months ago

  • Christoph
    3 months ago

  • Yijie
    4 months ago

Rana Talin

Stanislau

Marcel

FAQs

How does data.table compare to dplyr for data manipulation in R?

The data.table package is designed for high-performance operations on large datasets. Its concise syntax can be faster than dplyr, especially for groupwise computations and big data.

What dataset is used throughout the course exercises?

You will work with the San Francisco Bay Area bike share trip dataset from 2014, applying data.table operations to real transportation data across all five chapters.

Does the course cover importing and exporting data with data.table?

Yes. The final chapter teaches fast methods for reading and writing tabular text data such as CSV files using data.table's optimized import and export functions.

What are the main operations I will learn with data.table?

You will learn to filter rows, select and compute on columns, perform groupwise operations, chain expressions together, and use set functions for efficient data manipulation.

Do I need experience with dplyr before taking this course?

No. You only need Intermediate R and Introduction to R. The course teaches data.table as a standalone tool, though familiarity with data frames is helpful.

Join over 19 million learners and start Data Manipulation with data.table in R today!

Create Your Free Account

or

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

Grow your data skills with DataCamp for Mobile

Make progress on the go with our mobile courses and daily 5-minute coding challenges.