Skip to main content

Writing Efficient R Code

4.3+
19 reviews
Beginner

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

Start Course for Free
4 Hours14 Videos43 Exercises42,104 Learners

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 ProgrammerR Programming

Collaborators

Tom Jeon
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 19 reviews
68%
5%
21%
0%
5%
Sort by
  • Ákos Á.
    2 months

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

  • Dimitris L.
    4 months

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

  • Henry G.
    4 months

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

  • Cyntia P.
    4 months

    It's a very interesting course.

  • António S.
    4 months

    Very useful tools for programing!

  • Loading ...

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

Ákos Á.

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

Dimitris L.

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

Henry G.

Join over 11 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.