Skip to main content
HomeR

Intermediate R for Finance

4.7+
11 reviews
Beginner

Learn about how dates work in R, and explore the world of if statements, loops, and functions using financial examples.

Start Course for Free
5 hours15 videos59 exercises35,707 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 enjoyed the Introduction to R for Finance course, then you will love Intermediate R for Finance. Here, you will first learn the basics about how dates work in R, an important skill for the rest of the course. Your next step will be to explore the world of if statements, loops, and functions. These are powerful ideas that are essential to any financial data scientist's toolkit. Finally, we will spend some time working with the family of apply functions as a vectorized alternative to loops. And of course, all examples will be finance related! Enjoy!
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

    Dates

    Free

    Welcome! Before we go deeper into the world of R, it will be nice to have an understanding of how dates and times are created. This chapter will teach you enough to begin working with dates, but only scratches the surface of what you can do with them.

    Play Chapter Now
    An introduction to dates in R
    50 xp
    What day is it?
    100 xp
    From char to date
    100 xp
    Many dates
    100 xp
    Date formats and extractor functions
    50 xp
    Date formats (1)
    100 xp
    Date formats (2)
    100 xp
    Subtraction of dates
    100 xp
    months() and weekdays() and quarters(), oh my!
    100 xp
  2. 2

    If Statements and Operators

    Imagine you own stock in a company. If the stock goes above a certain price, you might want to sell. If the stock drops below a certain price, you might want to buy it while it's cheap! This kind of thinking can be implemented using operators and if statements. In this chapter, you will learn all about them, and create a program that tells you to buy or sell a stock.

    Play Chapter Now
  3. 4

    Functions

    If data structures like data frames and vectors are how you hold your data, functions are how you tell R what to do with your data. In this chapter, you will learn about using built-in functions, creating your own unique functions, and you will finish off with a brief introduction to packages.

    Play Chapter Now
  4. 5

    Apply

    A popular alternative to loops in R are the apply functions. These are often more readable than loops, and are incredibly useful for scaling the data science workflow to perform a complicated calculation on any number of observations. Learn about them here!

    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

collaborators

Collaborator's avatar
Davis Vaughan

prerequisites

Introduction to R for Finance
Lore Dirick HeadshotLore 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

Don’t just take our word for it

*4.7
from 11 reviews
73%
27%
0%
0%
0%
Sort by
  • Thashalak A.
    about 1 month

    Lore is a great teacher, she knows how to deliver difficult content to audience. very appreciated

  • Youssef A.
    3 months

    Good course 👍

  • Mario S.
    over 1 year

    I did enjoy a lot this course, it was a little piece of information about several subjects and well explained. Lore is amazing teaching.

  • Christian T.
    about 2 years

    When I started the course I thought that having done intermediate R would mean doing a repetition but I was surprised hoe much the content was tailored specifically for finance. Very interesting.

  • Don M.
    about 2 years

    There are times when even with the slides and explanation, something seems to be missing. There is value to looking up R guides online to resolve the exercise. Overall, it did present some key aspects of R that are helpful to a new learned.

"Lore is a great teacher, she knows how to deliver difficult content to audience. very appreciated"

Thashalak A.

"Good course 👍"

Youssef A.

"I did enjoy a lot this course, it was a little piece of information about several subjects and well explained. Lore is amazing teaching."

Mario S.

Join over 15 million learners and start Intermediate R for Finance 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.