Chapter 1: Getting Started
Things Your Statistics Class Probably Won't Teach You
Organization of this Book
Chapter 2: A Sample Session
Hypothesis Testing for Fun and Profit
Chapter 3: Object Types in R
R Objects And Their Names
How to Think about Data Objects in R
The Basic Data Objects: Vectors
The Basic Data Objects: Matrices and Their Indices
The Basic Data Objects: Data Frames
The Basic Data Objects: Lists
A Few Things about Working with Objects
Date and Time as a Storage Modes
The Curse of Number-Character-Factor Confusion
Chapter 4: Getting Your Data Into R
The Read Command: Overview
The Read Command: Reading from the Clipboard
The Read Command: Blank Delimited Tables
The Read Command: Comma Separated Values
The Read Command: Tab Separated Data
The Read Command: Fixed-Width Data
Importing Foreign File Types
Extracting Data from Complex Data Sources
Dealing with Multi-Dimensional Data
Importing Problematic Characters
Chapter 5: Reviewing and Summarizing Data
Checking A Sample Of Your Data
Reviewing Data By Categories
Displaying Data With A Histogram
Displaying Data With A Scatter Plot
Chapter 6: Sorting and Selecting Data
Using Index Values to Select Data
Using Conditional Values for Selecting
Using Subset( ) with Variable or Row Names to Select Data
Splitting a Dataset into Groups
Splitting Up Continuous Numeric Data
Sorting And Ordering Data
Chapter 7: Transforming Data
Math and Logical Functions in R
Truncation and Rounding Functions
The Apply( ) Family of Functions
Changing Variable Values Conditionally
Character Strings as Program Elements and Program Elements as Character Strings
Chapter 8: Text Operations
Some Useful Text Functions
Scraping the Web for Fun And Profit
Chapter 9: Working With Date And Time DataDates in R
Formatting Dates for Output
Creating Moving Averages in Time-Series Data
Lagged Variables in Time-Series Data
Differencing Variables in Time-Series Data
The Limitations of ts Data
Chapter 10: Data Merging And Aggregation
Keyed Table Look-up Merging
Transposing and Rotating Datasets
Chapter 11: Dealing with Missing Data
Reading Data with Missing Values
Summarizing Missing Values
The Missing Values Functions
Missing Values And Regression Modeling
Chapter 12: R Graphics I: The Built-in Plots
Histograms, Density Plots, and Bar Charts
Chapter 13: R Graphics II: The Boring Stuff
Chapter 14: R Graphics III: The Fun Stuff--Text
Simple Axes and Axis Labels
Building More Complex Axes
Chapter 15: R Graphics IV: The Fun Stuff--Shapes
Incorporating Images into Plots
A Final Word about Aesthetics
Chapter 16 from Here to Where?