Preface
Part I. The R Language
1. Introduction
Chapter Goals
What Is R?
Installing R
Choosing an IDE
Emacs + ESS
EclipseArchitect
RStudio
Revolution-R
Live-R
Other IDEs and Editors
Your First Program
How to Get Help in R
Installing Extra Related Software
Summary
Test Your Knowledge: Quiz
Test Your Knowledge: Exercises
2. A Scientific Calculator
Chapter Goals
Mathematical Operations and Vectors
Assigning Variables
Special Numbers
Logical Vectors
Summary
Test Your Knowledge: Quiz
Test Your Knowledge: Exercises
3. Inspecting Variables and Your Workspace
Chapter Goals
Classes
Different Types of Numbers
Other Common Classes
Checking and Changing Classes
Examining Variables
The Work, space
Summary
Test Your Knowledge: Quiz
Test Your Knowledge: Exercises
4. Vectors, Matrices, and Arrays
Chapter Goals
Vectors
Sequences
Lengths
Names
Indexing Vectors
Vector Recycling and Repetition
Matrices and Arrays
Creating Arrays and Matrices
Rows, Columns, and Dimensions
Row, Column, and Dimension Names
Indexing Arrays
Combining Matrices
Array Arithmetic
Summary
Test Your Knowledge: Quiz
Test Your Knowledge: Exercises
5. Lists and Data Frames
Chapter Goals
Lists
Creating Lists
Atomic and Recursive Variables
List Dimensions and Arithmetic
Indexing Lists
Converting Between Vectors and Lists
……
6. Environments and Functions
7. Strings and Factors
8. Flow Control and Loops
9. Advanced Looping
10. Packages
11. Dates and Times
Part II. The Data Analysis Workflow
12. Getting Data
13. Cleaning and Transforming
14. Exploring and Visualizing
15. Distributions and Modeling
16. Programming
17. Making Packages
Part III. Appendixes
A. Properties of Variables
B. Other Things to Do in R
C. Answers to Quizzes
D. Solutions to Exercises
Bibliography
Index