Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


R is the world's most popular language for developing statistical software: Archaeologists use it to track the spread of ancient civilizations, drug companies use it to discover which medications are safe and effective, and actuaries use it to assess financial risks and keep economies running smoothly.

Subscriber Reviews

Average Rating: 4.5 out of 5 rating Based on 4 Ratings

"the best R book so far" - by Anonymous on 04-APR-2013
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
the book with in-depth knowledge of R programming is rare. this is the one.
Report as Inappropriate

"Outstanding introductory to advanced R book" - by falling in love with R on 22-DEC-2011
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
Norman Matloff has done an outstanding job explaining R in this book.  I've read it after having used R for about 2 years and feeling that something was still missing and I don't fully understand some of the deeper aspects of the language. This book has made me a much better R programmer.

The book is both broad in its coverage of various language constructs and data structures, and deep and comprehensive in explaining them.  It provides working examples, and iluminates the R philosophy: a clean functional language with strong vector operation support, and a "do more with less typing" foundation that can make programs an order of magnitude smaller and expressive.

How can one transform a vector  into a matrix or a multi-dimensional array without a copy (reshaping)?  How can one implement perl/python/php style hashes (R lists)?  How can one clean or transform data? Do database-like operations? Avoid looping using vectorized array indexing? Visualize data?  What are S3 and the newer S4 functions?  All these questions and more are answered here in a very lucid style.

If you are just starting with the language, or if you've used it for a while but itching to get more productive in R, look no further.

Report as Inappropriate

Table of Contents



The publisher has provided additional content related to this title.


Visit the catalog page for The Art of R Programming

  • Catalog Page

Visit the errata page for The Art of R Programming

  • Errata

Download the supplemental electronic content for The Art of R Programming

  • Supplemental Content