| |
| |
| |
Introduction: Principles and Concepts | |
| |
| |
| |
Exploration: The Mission | |
| |
| |
| |
Trustworthy Software: The Prime Directive | |
| |
| |
| |
Concepts for Programming with R | |
| |
| |
| |
The R System and the S Language | |
| |
| |
| |
Using R | |
| |
| |
| |
Starting R | |
| |
| |
| |
An Interactive Session | |
| |
| |
| |
The Language | |
| |
| |
| |
Objects and Names | |
| |
| |
| |
Functions and Packages | |
| |
| |
| |
Getting R | |
| |
| |
| |
Online Information About R | |
| |
| |
| |
What's Hard About Using R? | |
| |
| |
| |
Programming with R: The Basics | |
| |
| |
| |
From Commands to Functions | |
| |
| |
| |
Functions and Functional Programming | |
| |
| |
| |
Function Objects and Function Calls | |
| |
| |
| |
The Language | |
| |
| |
| |
Debugging | |
| |
| |
| |
Interactive Tracing and Editing | |
| |
| |
| |
Conditions: Errors and Warnings | |
| |
| |
| |
Testing R Software | |
| |
| |
| |
R Packages | |
| |
| |
| |
Introduction: Why Write a Package? | |
| |
| |
| |
The Package Concept and Tools | |
| |
| |
| |
Creating a Package | |
| |
| |
| |
Documentation for Packages | |
| |
| |
| |
Testing Packages | |
| |
| |
| |
Package Namespaces | |
| |
| |
| |
Including C Software in Packages | |
| |
| |
| |
Interfaces to Other Software | |
| |
| |
| |
Objects | |
| |
| |
| |
Objects, Names, and References | |
| |
| |
| |
Replacement Expressions | |
| |
| |
| |
Environments | |
| |
| |
| |
Non-local Assignments; Closures | |
| |
| |
| |
Connections | |
| |
| |
| |
Reading and Writing Objects and Data | |
| |
| |
| |
Basic Data and Computations | |
| |
| |
| |
The Evolution of Data in the S Language | |
| |
| |
| |
Object Types | |
| |
| |
| |
Vectors and Vector Structures | |
| |
| |
| |
Vectorizing Computations | |
| |
| |
| |
Statistical Data: Data Frames | |
| |
| |
| |
Operators: Arithmetic, Comparison, Logic | |
| |
| |
| |
Computations on Numeric Data | |
| |
| |
| |
Matrices and Matrix Computations | |
| |
| |
| |
Fitting Statistical models | |
| |
| |
| |
Programming Random Simulations | |
| |
| |
| |
Data Visualization and Graphics | |
| |
| |
| |
Using Graphics in R | |
| |
| |
| |
The x-y Plot | |
| |
| |
| |
The Common Graphics Model | |
| |
| |
| |
The graphics Package | |
| |
| |
| |
The grid Package | |
| |
| |
| |
Trellis Graphics and the lattice Package | |
| |
| |
| |
Computing with Text | |
| |
| |
| |
Text Computations for Data Analysis | |
| |
| |
| |
Importing Text Data | |
| |
| |
| |
Regular Expressions | |
| |
| |
| |
Text Computations in R | |
| |
| |
| |
Using and Writing Perl | |
| |
| |
| |
Examples of Text Computations | |
| |
| |
| |
New Classes | |
| |
| |
| |
Introduction: Why Classes? | |
| |
| |
| |
Programming with New Classes | |
| |
| |
| |
Inheritance and Inter-class Relations | |
| |
| |
| |
Virtual Classes | |
| |
| |
| |
Creating and Validating Objects | |
| |
| |
| |
Programming with S3 Classes | |
| |
| |
| |
Example: Binary Trees | |
| |
| |
| |
Example: Data Frames | |
| |
| |
| |
Methods and Generic Functions | |
| |
| |
| |
Introduction: Why Methods? | |
| |
| |
| |
Method Definitions | |
| |
| |
| |
New Methods for Old Functions | |
| |
| |
| |
Programming Techniques for Methods | |
| |
| |
| |
Generic Functions | |
| |
| |
| |
How Method Selection Works | |
| |
| |
| |
Interfaces I: C and Fortran | |
| |
| |
| |
Interfaces to C and Fortran | |
| |
| |
| |
Calling R-Independent Subroutines | |
| |
| |
| |
Calling R-Dependent Subroutines | |
| |
| |
| |
Computations in C++ | |
| |
| |
| |
Loading and Registering Compiled Routines | |
| |
| |
| |
Interfaces II: Other Systems | |
| |
| |
| |
Choosing an Interface | |
| |
| |
| |
Text- and File-Based Interfaces | |
| |
| |
| |
Functional Interfaces | |
| |
| |
| |
Object-Based Interfaces | |
| |
| |
| |
Interfaces to OOP Languages | |
| |
| |
| |
Interfaces to C++ | |
| |
| |
| |
Interfaces to Databases and Spreadsheets | |
| |
| |
| |
Interfaces without R | |
| |
| |
| |
How R Works | |
| |
| |
| |
The R Program | |
| |
| |
| |
The R Evaluator | |
| |
| |
| |
Calls to R Functions | |
| |
| |
| |
Calls to Primitive Functions | |
| |
| |
| |
Assignments and Replacements | |
| |
| |
| |
The Language | |
| |
| |
| |
Memory Management for R Objects | |
| |
| |
| |
Some Notes on the History of S | |
| |
| |
Bibliography | |
| |
| |
Index | |
| |
| |
Index of R Functions and Documentation | |
| |
| |
Index of R Classes and Types | |