Skip to main content

Case Studies: Manipulating Time Series Data in R

Strengthen your knowledge of the topics covered in Manipulating Time Series in R using real case study data.

Start Course for Free
4 Hours12 Videos50 Exercises11,059 Learners3950 XPQuantitative Analyst TrackTime Series Track

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

In this course, you will strengthen your knowledge of time series topics through interactive exercises and interesting datasets. You’ll explore a variety of datasets about Boston, including data on flights, weather, economic trends, and local sports teams.

  1. 1

    Flight Data


    You've been hired to understand the travel needs of tourists visiting the Boston area. As your first assignment on the job, you'll practice the skills you've learned for time series data manipulation in R by exploring data on flights arriving at Boston's Logan International Airport (BOS) using xts & zoo.

    Play Chapter Now
    Review xts fundamentals
    50 xp
    Identify the time series
    50 xp
    Flight data
    100 xp
    Pick out the xts object
    50 xp
    Encoding your flight data
    100 xp
    Manipulating and visualizing your data
    50 xp
    Exploring your flight data
    100 xp
    Visualize flight data
    100 xp
    Calculate time series trends
    100 xp
    Saving and exporting xts objects
    50 xp
    Assessing flight trends
    50 xp
    Saving time - I
    100 xp
    Saving time - II
    100 xp
  2. 2

    Weather Data

    In this chapter, you'll expand your time series data library to include weather data in the Boston area. Before you can conduct any analysis, you'll need to do some data manipulation, including merging multiple xts objects and isolating certain periods of the data. It's a great opportunity for more practice!

    Play Chapter Now
  3. 3

    Economic Data

    Now it's time to go further afield. In addition to flight delays, your client is interested in how Boston's tourism industry is affected by economic trends. You'll need to manipulate some time series data on economic indicators, including GDP per capita and unemployment in the United States in general and Massachusetts (MA) in particular.

    Play Chapter Now
  4. 4

    Sports Data

    Having exhausted other options, your client now believes Boston's tourism industry must be related to the success of local sports teams. In your final task on this project, your supervisor has asked you to assemble some time series data on Boston's sports teams over the past few years.

    Play Chapter Now

In the following tracks

Quantitative AnalystTime Series
Lore Dirick Headshot

Lore Dirick

Director of Data Science Education at Flatiron School

Lore is a data scientist with expertise in applied finance. She obtained her PhD in Business Economics and Statistics at KU Leuven, Belgium. During her PhD, she collaborated with several banks working on advanced methods for the analysis of credit risk data. Lore formerly worked as a Data Science Curriculum Lead at DataCamp, and is and is now Director of Data Science Education at Flatiron School, a coding school with branches in 8 cities and online programs.
See More
Matt Isaacs Headshot

Matt Isaacs

Political Science PhD interested in data science in defense, security, and international relations

Matt Isaacs is a former Course Development Intern at DataCamp . Matt holds a PhD in Political Science from Brandeis University and has extensive experience in applied data science across the public sector with a focus on analytics in defense, security, and international relations.
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