O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Efficient R optimization

Book Description

What you’ll learn—and how you can apply it

You’ll learn how to optimize your tried and tested code.

In this Lesson, learners will understand how to profile code to identify and prevent key bottlenecks in R performance, as well as tricks that may improve performance on row and column operations and matrices. This Lesson also presents an example of specific improvements that can be made to enhance performance of the movie_square() function.

This lesson is for you because

You already have well-developed code that is mature conceptually and has been tried and tested. Now, you want to optimize this code.

Prerequisites:

Some knowledge of R and have well-developed R code

Materials or downloads needed:

  • Installed RStudio
  • Some examples in this Lesson require a working C++ compiler