Skip to main content
HomeR

Writing Efficient R Code

4.2+
26 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 exercises49,948 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

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.
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

Big Data in R

Go To Track

R Developer

Go To Track

R Programming Fundamentals

Go To Track
  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
For Business

Training 2 or more people?

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

In the following Tracks

Big Data in R

Go To Track

R Developer

Go To Track

R Programming Fundamentals

Go To Track

datasets

Information on 45,000 movies

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.2
from 26 reviews
62%
15%
15%
0%
8%
  • Scott L.
    11 months

    Was good - easy to understand and concise.

  • Susan L.
    about 1 year

    this is an unusual type of course and very helpful, even for a data analyst sort

  • Evgeniia A.
    over 1 year

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

  • Ákos Á.
    over 1 year

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

  • Dimitris L.
    almost 2 years

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

"Was good - easy to understand and concise."

Scott L.

"this is an unusual type of course and very helpful, even for a data analyst sort"

Susan L.

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

Evgeniia A.

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