Chapter 5. Power Programming with R

In this chapter, we will cover the following recipes:

  • Writing modular code in RStudio
  • Implementing parallel computation in R
  • Creating custom objects and methods in R using the S3 system
  • Evaluating your code performance using the profvis package
  • Comparing an alternative function's performance using the microbenchmarking package
  • Using GitHub with RStudio

Introduction

This chapter introduces you to a few advanced programming techniques in R, leveraging some of the unique features of the RStudio IDE, such as the embedded Git pane (refer to the last recipe of this chapter, Using GitHub with RStudio, to know more).

The recipes accomplished in this chapter are usually encountered by R programmers when dealing with large datasets ...

Get RStudio for R Statistical Computing Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.