Skip to main content
HomeR

Importing and Managing Financial Data in R

Learn how to access financial data from local files as well as from internet sources.

Start Course for Free
5 hours14 videos51 exercises19,768 learnersTrophyStatement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

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

Training 2 or more people?

Try DataCamp for Business

Loved by learners at thousands of companies


Course Description

If you've ever done anything with financial or economic time series, you know the data come in various shapes, sizes, and periodicities. Getting the data into R can be stressful and time-consuming, especially when you need to merge data from several different sources into one data set. This course will cover importing data from local files as well as from internet sources.
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.
DataCamp for BusinessFor a bespoke solution book a demo.

In the following Tracks

Finance Fundamentals in R

Go To Track

Quantitative Analyst in R

Go To Track
  1. 1

    Introduction and Downloading Data

    Free

    A wealth of financial and economic data are available online. Learn how getSymbols() and Quandl() make it easy to access data from a variety of sources.

    Play Chapter Now
    Welcome to the course!
    50 xp
    Introducing getSymbols()
    100 xp
    Data sources
    100 xp
    Make getSymbols() return the data it retrieves
    100 xp
    Finding data from internet sources
    50 xp
    Find stock ticker from Yahoo Finance
    100 xp
    Download exchange rate data from Oanda
    100 xp
  2. 2

    Extracting and Transforming Data

    You've learned how to import data from online sources, now it's time to see how to extract columns from the imported data. After you've learned how to extract columns from a single object, you will explore how to import, transform, and extract data from multiple instruments.

    Play Chapter Now
  3. 3

    Managing Data from Multiple Sources

    Learn how to simplify and streamline your workflow by taking advantage of the ability to customize default arguments to getSymbols(). You will see how to customize defaults by data source, and then how to customize defaults by symbol. You will also learn how to handle problematic instrument symbols.

    Play Chapter Now
  4. 4

    Aligning Data with Different Periodicities

    You've learned how to import, extract, and transform data from multiple data sources. You often have to manipulate data from different sources in order to combine them into a single data set. First, you will learn how to convert sparse, irregular data into a regular series. Then you will review how to aggregate dense data to a lower frequency. Finally, you will learn how to handle issues with intra-day data.

    Play Chapter Now
  5. 5

    Importing Text Data, and Adjusting for Corporate Actions

    You've learned the core workflow of importing and manipulating financial data. Now you will see how to import data from text files of various formats. Then you will learn how to check data for weirdness and handle missing values. Finally, you will learn how to adjust stock prices for splits and dividends.

    Play Chapter Now
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.

In the following Tracks

Finance Fundamentals in R

Go To Track

Quantitative Analyst in R

Go To Track

datasets

Amazon CSV fileDC dataUNE CSV filetwo_symbols CSV file

collaborators

Collaborator's avatar
Lore Dirick
Collaborator's avatar
Davis Vaughan
Joshua Ulrich HeadshotJoshua Ulrich

Quantitative Analyst & member of R/Finance Conference committee

Joshua Ulrich is a Quantitative Analyst & Programmer for an algorithmic market maker, a member of the R/Finance Conference organizing committee, and founder of the Saint Louis R User Group. He is the creator of TTR, and co-author of several other packages for R and finance, including quantmod. He is passionate about computational finance, algorithmic trading, risk management, and helping people solve problems.
See More

What do other learners have to say?

Join over 15 million learners and start Importing and Managing Financial Data in R today!

Create Your Free Account

GoogleLinkedInFacebook

or

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