This tutorial manual provides a comprehensive introduction to R, a software package for statistical computing and graphics. R supports a wide range of statistical techniques, and is easily extensible via user-defined functions written in its own language or using C, C++ or Fortran. One of R's strengths is the ease with which well-designed publication-quality plots can be produced. This is a printed copy of the tutorial manual from the R distribution, with additional examples, notes and corrections. It is based on R version 2.9.0, released April 2009. R is free software, distributed under the terms of the GNU General Public License (GPL). It can be used with GNU/Linux, Unix and Microsoft Windows. All the money raised from the sale of this book supports the development of free software and documentation.
1. Introduction and preliminaries 2. Simple manipulations; numbers and vectors 3. Objects, their modes and attributes 4. Ordered and unordered factors 5. Arrays and matrices 6. Lists and data frames 7. Reading data from files 8. Probability distributions 9. Grouping, loops and conditional execution 10. Writing your own functions 11. Statistical models in R 12. Graphical procedures 13. Packages 14. A sample session 15. Invoking R 16. The command-line editor 17. References 18. Index