Skip to main content
Rafał Alitojć avatar

Rafał Alitojć has completed

Writing Efficient R Code

Start course For Free
4 hours
3,100 XP
Statement of Accomplishment Badge

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

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more
Try DataCamp for BusinessFor a bespoke solution book a demo.
  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

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more

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

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