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 (refer to the Implementing parallel computation in R recipe) and optimization issues (refer to the recipes on the profvis and microbenchmarking packages).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset