premium course

Introduction to R for Finance

Start Course For Free Play Trailer
  • 14 Videos
  • 62 Exercises
  • 4 hours 
  • 2,785 Participants
  • 5300 XP


Lore Dirick
Lore Dirick

Lore is a data scientist at DataCamp. 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. At DataCamp, she is in charge of building out the Applied Finance curriculum.


Davis Vaughan Davis Vaughan

Course Description

Learning R can be intimidating, especially without concrete examples you might see in the real world. In this finance oriented introduction to R, you will learn essential data structures such as lists and data frames and have the chance to apply that knowledge directly to financial examples. By the end of the course, you will feel comfortable with the basics of manipulating your data to perform financial analysis in R.


Are you a male or female? On a scale of 1-10, how are you feeling? These are questions with answers that fall into a limited number of categories. These types of data can be classified as factors. In this chapter, you will use bond credit ratings to learn all about creating, ordering, and subsetting factors!


Think about your grocery list for a second. Apples, pizza, milk, and whatever else you might have on there. These are very different items right? Wouldn't it be nice if there was a way to hold related vectors, matrices, or data frames together in R? Enter, the list! In this final chapter, you will explore lists and many of their interesting features by building a small portfolio of stocks, and even come to realize that you have seen some of this already!