O'Reilly logo

R in Action, Second Edition: Data analysis and graphics with R by Robert Kabacoff

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

Chapter 20. Advanced programming

This chapter covers

  • A deeper dive into the R language
  • Using R’s OOP features to create generic functions
  • Tweaking code to run more efficiently
  • Finding and correcting programming errors

Previous chapters introduced various topics that are important for application development, including data types (section 2.2), control flow (section 5.4), and function creation (section 5.5). This chapter will review these aspects of R as a programming language—but from a more advanced and detailed perspective. By the end of this chapter, you’ll have a better idea of how the R language works.

We’ll start with a review of objects, data types, and control flow before moving on to details of function creation, including the ...

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

Start Free Trial

No credit card required