20 Advanced programming
This chapter covers
- Diving deeper 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 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, which will help you create your own functions, and ultimately, your own packages.
We’ll start with a review of objects, data types, and control flow ...
Get R in Action, Third Edition 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.