Copyright
Brief Table of Contents
Table of Contents
Preface
Acknowledgments
About this Book
About the Cover Illustration
1. Getting started
Chapter 1. Introduction to R
1.1. Why use R?
1.2. Obtaining and installing R
1.3. Working with R
1.3.1. Getting started
1.3.2. Getting help
1.3.3. The workspace
1.3.4. Input and output
1.4. Packages
1.4.1. What are packages?
1.4.2. Installing a package
1.4.3. Loading a package
1.4.4. Learning about a package
1.5. Batch processing
1.6. Using output as input—reusing results
1.7. Working with large datasets
1.8. Working through an example
1.9. Summary
Chapter 2. Creating a dataset
2.1. Understanding datasets
2.2. Data structures
2.2.1. Vectors
2.2.2. Matrices
2.2.3. Arrays
2.2.4. Data frames
2.2.5. Factors
2.2.6. Lists
2.3. Data input
2.3.1. Entering data from the keyboard
2.3.2. Importing data from a delimited text file
2.3.3. Importing data from Excel
2.3.4. Importing data from XML
2.3.5. Webscraping
2.3.6. Importing data from SPSS
2.3.7. Importing data from SAS
2.3.8. Importing data from Stata
2.3.9. Importing data from netCDF
2.3.10. Importing data from HDF5
2.3.11. Accessing database management systems (DBMSs)
2.3.12. Importing data via Stat/Transfer
2.4. Annotating datasets