Interactive Course

Time Series with data.table in R

Master time series data using data.table in R.

  • 4 hours
  • 14 Videos
  • 52 Exercises
  • 1,273 Participants
  • 4,200 XP

Loved by learners at thousands of top companies:

uber-grey.svg
whole-foods-grey.svg
t-mobile-grey.svg
forrester-grey.svg
3m-grey.svg
roche-grey.svg

Course Description

Time series data is fun, but challenging. When ordering matters, your datasets get large, and timestamp precision differences can foil your merges, building reliable data processing pipelines requires a principled approach with the right tools. Enter data.table! Its expressive syntax will make your code powerful without sacrificing readability and its support for in-place operations will make your code super fast. Learn how to master time series data in data.table with this course!

  1. 1

    Review of data.table

    Free

    This chapter provides an overview of all the cool things that make data.table perfect for working with time series data, including its multiple column-selection options, how to modify data.tables by reference, and calling functions by taking advantage of non-standard evaluation.

  2. Generating lags, differences, and windowed aggregations

    Like most other data, time series data you find in the wild are rarely suitable to directly start using in model training. In this chapter, you'll learn how to write powerful, expressive data.table code to implement a few common forms of time series feature engineering.

  3. Getting time series data into data.table

    Ok, so you have some time series data and you believe me that data.table is great for it. Before you can test that, you need to convert your data! In this chapter, you'll learn how to convert from popular time series data formats into data.table.

  4. Case study: financial data

    It's time to put it all together! In this chapter you'll consider a real-world dataset of spot metal prices from the London Metal Exchange (LME). By the end, you'll know how to write reusable functions to perform common time series feature engineering tasks and you'll have experience using those functions to build a statistical model.

  1. 1

    Review of data.table

    Free

    This chapter provides an overview of all the cool things that make data.table perfect for working with time series data, including its multiple column-selection options, how to modify data.tables by reference, and calling functions by taking advantage of non-standard evaluation.

  2. Getting time series data into data.table

    Ok, so you have some time series data and you believe me that data.table is great for it. Before you can test that, you need to convert your data! In this chapter, you'll learn how to convert from popular time series data formats into data.table.

  3. Generating lags, differences, and windowed aggregations

    Like most other data, time series data you find in the wild are rarely suitable to directly start using in model training. In this chapter, you'll learn how to write powerful, expressive data.table code to implement a few common forms of time series feature engineering.

  4. Case study: financial data

    It's time to put it all together! In this chapter you'll consider a real-world dataset of spot metal prices from the London Metal Exchange (LME). By the end, you'll know how to write reusable functions to perform common time series feature engineering tasks and you'll have experience using those functions to build a statistical model.

What do other learners have to say?

Devon

“I've used other sites, but DataCamp's been the one that I've stuck with.”

Devon Edwards Joseph

Lloyd's Banking Group

Louis

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

Louis Maiden

Harvard Business School

Ronbowers

“DataCamp is by far my favorite website to learn from.”

Ronald Bowers

Decision Science Analytics @ USAA

James Lamb
James Lamb

Staff Data Scientist, Uptake

James is a Data Scientist at Amazon Web Services, based in Chicago, IL. He focuses on merging the disciplines of software engineering and data science. He is the maintainer and main author of the "uptasticsearch" R package, a co-author on the "pkgnet" package, and a member of the LightGBM development team. James holds masters degrees in Applied Economics (Marquette University) and Data Science (University of California, Berkeley).

See More
Icon Icon Icon professional info