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

Publisher resources

View/Submit Errata

Product information

  • Title: Efficient R optimization
  • Author(s): Colin Gillespie, Robin Lovelace
  • Release date: December 2016
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781491979501