Skip to main content

The R Book

Michael J. Crawley

ISBN: 978-0-470-51507-5 September 2007 950 Pages


The high-level language of R is recognized as one of the most powerful and flexible statistical software environments, and is rapidly becoming the standard setting for quantitative analysis, statistics and graphics. R provides free access to unrivalled coverage and cutting-edge applications, enabling the user to apply numerous statistical methods ranging from simple regression to time series or multivariate analysis.

Building on the success of the author’s bestselling Statistics: An Introduction using R, The R Book is packed with worked examples, providing an all inclusive guide to R, ideal for novice and more accomplished users alike. The book assumes no background in statistics or computing and introduces the advantages of the R environment, detailing its applications in a wide range of disciplines.

  • Provides the first comprehensive reference manual for the R language, including practical guidance and full coverage of the graphics facilities.
  • Introduces all the statistical models covered by R, beginning with simple classical tests such as chi-square and t-test.
  • Proceeds to examine more advance methods, from regression and analysis of variance, through to generalized linear models, generalized mixed models, time series, spatial statistics, multivariate statistics and much more.

The R Book is aimed at undergraduates, postgraduates and professionals in science, engineering and medicine. It is also ideal for students and professionals in statistics, economics, geography and the social sciences.

Preface vii

1 Getting Started 1

2 Essentials of the R Language 9

3 Data Input 97

4 Dataframes 107

5 Graphics 135

6 Tables 183

7 Mathematics 195

8 Classical Tests 279

9 Statistical Modelling 323

10 Regression 387

11 Analysis of Variance 449

12 Analysis of Covariance 489

13 Generalized Linear Models 511

14 Count Data 527

15 Count Data in Tables 549

16 Proportion Data 569

17 Binary Response Variables 593

18 Generalized Additive Models 611

19 Mixed-Effects Models 627

20 Non-linear Regression 661

21 Tree Models 685

22 Time Series Analysis 701

23 Multivariate Statistics 731

24 Spatial Statistics 749

25 Survival Analysis 787

26 Simulation Models 811

27 Changing the Look of Graphics 827

References and Further Reading 873

Index 877

"It may seem strange to include a new edition of a textbook in the preview, but I feel that this is one that is definitely worth highlighting. It is a classic that does not just sell to students during term time but has a much wider appeal ... This edition will sell really well on publication." (The Bookseller, 16 December 2011)

"There is a tremendous amount of information in the book, and it will be very helpful … .This is a potentially very useful book." (Journal of Applied Science, December 2008)

"…if you are an R user or wannabe R user, this text is the one that should be on your shelf.  The breadth of topics covered is unsurpassed when it comes to texts on data analysis in R." (The American Statistician, Aug 2008)

"The R Book; provides the first comprehensive reference manual for the R language." (Statistica 2008)

"…a 950-page comprehensive reference manual for what is perhaps becoming the most powerful and flexible statistical software environment…" (CHOICE, December 2007)

‘The High-level software language of R is setting standards in quantitative analysis. And now anybody can get to grips with it thanks to The R Book…’ (Professional Pensions, 19th July 2007)  

"There is a tremendous amount of information in the book, and it will be very helpful … .This is a potentially very useful book." (Journal of Applied Science, Dec 2008)


The R Book Access all the executable text files discussed in the book.