Skip to main content
HomeRWriting Efficient R Code

Writing Efficient R Code

4.3+
24 reviews
Intermediate

Learn to write faster R code, discover benchmarking and profiling, and unlock the secrets of parallel programming.

Start Course for Free
4 Hours14 Videos43 Exercises
46,271 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.

Loved by learners at thousands of companies


Course Description

The beauty of R is that it is built for performing data analysis. The downside is that sometimes R can be slow, thereby obstructing our analysis. For this reason, it is essential to become familiar with the main techniques for speeding up your analysis, so you can reduce computational time and get insights as quickly as possible.
  1. 1

    The Art of Benchmarking

    Free

    In order to make your code go faster, you need to know how long it takes to run. This chapter introduces the idea of benchmarking your code.

    Play Chapter Now
    Welcome!
    50 xp
    R version
    100 xp
    Benchmarking
    50 xp
    Comparing read times of CSV and RDS files
    100 xp
    Operational differences: "<-" and "="
    50 xp
    Elapsed time
    100 xp
    Relative time
    50 xp
    How good is your machine?
    50 xp
    DataCamp hardware
    100 xp
    Benchmark DataCamp's machine
    100 xp
  2. 3

    Diagnosing Problems: Code Profiling

    Profiling helps you locate the bottlenecks in your code. This chapter teaches you how to visualize the bottlenecks using the profvis package.

    Play Chapter Now

In the following tracks

Big Data with RR DeveloperR Programming

Collaborators

Collaborator's avatar
Tom Jeon
Collaborator's avatar
Richie Cotton

Prerequisites

Intermediate R
Colin Gillespie HeadshotColin Gillespie

Assoc Prof at Newcastle University, Consultant at Jumping Rivers

Colin is the author of Efficient R Programming, published by O'Reilly media. He is an Associate Professor of Statistics at Newcastle University, UK and regularly works with Jumping Rivers to provide data science training and consultancy. He is the only person in history to move to Newcastle for better weather.
See More

Don’t just take our word for it

*4.3
from 24 reviews
67%
13%
17%
0%
4%
Sort by
  • Evgeniia A.
    7 months

    A useful course for those who have ever thought about the speed of execution of their programmes

  • Ákos Á.
    12 months

    Great course with useful best practices. Learned a lot from this

  • Dimitris L.
    about 1 year

    cool instructor, excellent material, clear messages. Thanks for the experience

  • Henry G.
    about 1 year

    Gran curso, lo disfruté mucho y aprendí un monton.

  • Cyntia P.
    about 1 year

    It's a very interesting course.

"A useful course for those who have ever thought about the speed of execution of their programmes"

Evgeniia A.

"Great course with useful best practices. Learned a lot from this"

Ákos Á.

"cool instructor, excellent material, clear messages. Thanks for the experience"

Dimitris L.

Join over 13 million learners and start Writing Efficient R Code 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.