-
Welcome | Advanced R
This is the website for 2nd edition of
“Advanced R”, a book in Chapman & Hall’s R Series. The book is designed primarily for R users who want to improve their programming skills and understanding of ...
-
1 Introduction | Advanced R
1 Introduction
I have now been programming in R for over 15 years, and have been doing it full-time for the last five years. This has given me the luxury of time to examine how the language works. Thi...
-
6 Functions | Advanced R
6.1 Introduction
If you’re reading this book, you’ve probably already created many R functions and know how to use them to reduce duplication in your code. In this chapter, you’ll learn how to turn th...
-
Introduction | Advanced R
Introduction
To start your journey in mastering R, the following six chapters will help you learn the foundational components of R. I expect that you’ve already seen many of these pieces before, but y...
-
Introduction | Advanced R
In the following five chapters you’ll learn about
object-oriented programming (OOP). OOP is a little more challenging in R than in other languages because:
There are multiple OOP systems to choose fr...
-
7 Environments | Advanced R
7.4.3 Namespaces
In the diagram above, you saw that the parent environment of a package varies based on what other packages have been loaded. This seems worrying: doesn’t that mean that the package wi...