This book offers solutions to all 284 exercises in Advanced R, Second Edition. All the solutions have been carefully documented and made to be as clear and accessible as possible. Working through the exercises and their solutions will give you a deeper understanding of a variety of programming challenges, many of which are relevant to everyday work. This will expand your set of tools on a technical and conceptual level. You will be able to transfer many of the specific programming schemes directly and will discover far more elegant solutions to everyday problems.
Features:
Malte Grosser is a business mathematician from Hamburg, who has been programming in R regularly since the beginning of his career. He is currently finishing his PhD on machine learning for stroke outcome prediction and develops solutions in business as a data scientist.
Henning Bumann is a psychologist and statistician who enjoys making sense of data and is motivated to build data-driven solutions that are beautiful and meaningful. He prefers free programming tools to support effective and transparent collaboration.
Hadley Wickham is Chief Scientist at RStudio, an Adjunct Professor at Stanford University and the University of Auckland, and a member of the R Foundation. He is the lead developer of the tidyverse, a collection of R packages, including ggplot2 and dplyr, designed to support data science.
Part I Foundations
2. Names and values
3. Vectors
4. Subsetting
5. Control Flow
6. Functions
7. Environments
8. Conditions
Part II Funtional Programming
9. Functionals
10. Function Factories
11. Function Operators
Part III Object oriented programming
13. S3
14. R6
15. S4
Part IV Metaprogramming
18. Expressions
19. Quasiquotation
20. Evaluation
21. Translating R Code
Part V Techniques
23. Measuring Performance
24. Improving Performance
25. Rewriting R code in C++