
The Book of R, 2nd Edition: A First Course in Programming and Statistics
Author(s): Tilman M. Davies (Author)
- Publisher: No Starch Press
- Publication Date: November 25, 2025
- Edition: 2nd
- Language: English
- Print length: 936 pages
- ISBN-10: 1718503687
- ISBN-13: 9781718503687
Book Description
You’ll start with the basics, like how to handle data and write simple programs, before moving on to more advanced topics, like producing statistical summaries of your data and performing tests and modeling. You’ll even learn how to create impressive data visualizations with R’s graphics tools and contributed packages, like ggplot2, ggvis, and rgl.
Dozens of hands-on exercises take you from theory to practice as you learn:
- The fundamentals of programming in R, including how to write data frames, create functions, and use variables, statements, and loops
- Statistical concepts like exploratory data analysis, probabilities, hypothesis tests, and regression modeling and how to execute them in R
- How to access R’s thousands of functions, libraries, and datasets
- How to draw valid and useful conclusions from your data and create publication-quality graphics of your results
The Book of R brings both statistics and R to life. With clear explanations, practical examples, and hands-on exercises, this book opens the door to the evolving world of data analysis.
New to this edition: The entire book has been revised and expanded, with nearly 100 pages of new content and exercises. You’ll find greater coverage of data plots and R graphics, guidance on using pipes to string together commands, and new ways to read and write external files, among many other lessons.
Editorial Reviews
Review
—Kirk Borne, principal data scientist at Booz Allen Hamilton
finelybook
