This long-awaited second edition folds years of updates into its beginner-friendly lessons on using R for data and statistical analysis.
The Book of R is a comprehensive, beginner-friendly guide to R, the world’s most popular programming language for statistical analysis. Even if you have no programming experience and little more than a grounding in the basics of mathematics, you’ll find everything you need to begin writing programs in R.
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.
Inhaltsverzeichnis
Preface< BR> Acknowledgments< BR> Introduction< BR> < BR> PART I: THE LANGUAGE< BR> Chapter 1: Getting Started< BR> Chapter 2: Numerics, Arithmetic, Assignment, and Vectors< BR> Chapter 3: Matrices and Arrays< BR> Chapter 4: Non-Numeric Values< BR> Chapter 5: Lists and Data Frames< BR> Chapter 6: Special Values, Classes, and Coercion< BR> Chapter 7: Basic Plotting< BR> Chapter 8: Reading and Writing Files< BR> < BR> PART II: PROGRAMMING< BR> Chapter 9: Calling Functions< BR> Chapter 10: Conditions and Loops< BR> Chapter 11: Writing Functions< BR> Chapter 12: Exceptions, Timings, and Visibility< BR> < BR> PART III: STATISTICS AND PROBABILITY< BR> Chapter 13: Elementary Statistics< BR> Chapter 14: Basic Data Visualizations< BR> Chapter 15: Probability< BR> Chapter 16: Common Probability Distributions< BR> < BR> PART IV: STATISTICAL TESTING AND MODELING< BR> Chapter 17: Sampling Distributions and Confidence< BR> Chapter 18: Hypothesis Testing< BR> Chapter 19: Analysis of Variance< BR> Chapter 20: Simple Linear Regression< BR> Chapter 21: Multiple Linear Regression< BR> Chapter 22: Linear Model Selection and Diagnostics< BR> < BR> PART V: ADVANCED GRAPHICS< BR> Chapter 23: Advanced Plot Customization< BR> Chapter 24: Going Further with the Grammar of Graphics< BR> Chapter 25: Defining Colors and Plotting in Higher Dimensions< BR> Chapter 26: Interactive 3D Plots< BR> < BR> Appendix A: Installing R and Contributed Packages< BR> Appendix B: Working with RStudio< BR> Reference List