Advanced Object-Oriented Programming in R: Statistical Programming for Data Science, Analysis and Finance
โ Scribed by Thomas Mailund (auth.)
- Publisher
- Apress
- Year
- 2017
- Tongue
- English
- Leaves
- 119
- Edition
- 1
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Synopsis
Learn how to write object-oriented programs in R and how to construct classes and class hierarchies in the three object-oriented systems available in R. This book gives an introduction to object-oriented programming in the R programming language and shows you how to use and apply R in an object-oriented manner. You will then be able to use this powerful programming style in your own statistical programming projects to write flexible and extendable software.
After reading Advanced Object-Oriented Programming in R, you'll come away with a practical project that you can reuse in your own analytics coding endeavors. Youโll then be able to visualize your data as objects that have state and then manipulate those objects with polymorphic or generic methods. Your projects will benefit from the high degree of flexibility provided by polymorphism, where the choice of concrete method to execute depends on the type of data being manipulated.
What You'll Learn
- Define and use classes and generic functions using R
- Work with the R class hierarchies
- Benefit from implementation reuse
- Handle operator overloading
- Apply the S4 and R6 classes
Who This Book Is For
Experienced programmers and for those with at least some prior experience with R programming language.
โฆ Table of Contents
Front Matter....Pages i-xv
Classes and Generic Functions....Pages 1-20
Class Hierarchies....Pages 21-34
Implementation Reuse....Pages 35-42
Statistical Models....Pages 43-60
Operator Overloading....Pages 61-71
S4 Classes....Pages 73-90
R6 Classes....Pages 91-105
Conclusions....Pages 107-107
Back Matter....Pages 109-110
โฆ Subjects
Programming Techniques;Programming Languages, Compilers, Interpreters;Probability and Statistics in Computer Science
๐ SIMILAR VOLUMES
<p>Master functions and discover how to write functional programs in R. In this concise book, you'll make your functions pure by avoiding side-effects; youโll write functions that manipulate other functions, and youโll construct complex functions using simpler functions as building blocks.<br>In <i>
<span>Master functions and discover how to write functional programs in R. In this book, updated for R 4, you'll learn to make your functions pure by avoiding side effects, write functions that manipulate other functions, and construct complex functions using simpler functions as building blocks.<br
<span>Master functions and discover how to write functional programs in R. In this book, updated for R 4, you'll learn to make your functions pure by avoiding side effects, write functions that manipulate other functions, and construct complex functions using simpler functions as building blocks.<br
<p>Learn how to manipulate functions and expressions to modify how the R language interprets itself. This book is an introduction to metaprogramming in the R language, so you will write programs to manipulate other programs. <i>Metaprogramming in R</i> shows you how to treat code as data that you ca
Master functions and discover how to write functional programs in R. In this book, updated for R 4, you'll learn to make your functions pure by avoiding side effects, write functions that manipulate other functions, and construct complex functions using simpler functions as building blocks. In Fu