R: Programming for Data and Statistics cover

Data Science · Ebook

R: Programming for Data and Statistics

by Shriira Press

4.8(760)172 pagesPublished 2026

R was built by statisticians for working with data, and its toolkit for analysis, statistics, and visualisation is unmatched. This free, example-driven book teaches it from the ground up: running R and RStudio, the vector and R's vectorised mindset, data types and the all-important data frame, importing and wrangling data with the tidyverse and the pipe, functions and iteration, beautiful graphics with ggplot2, real statistics and models with R's formula interface, and reproducible reporting with R Markdown. Ten focused chapters with runnable code and clear diagrams. Learn the language that turns raw data into understanding.

Contents

  1. 1Preface
  2. 2Chapter 1 — What R Is and Why Data People Love It
  3. 3Chapter 2 — Getting Started
  4. 4Chapter 3 — Vectors: R's Fundamental Type
  5. 5Chapter 4 — Data Types and Structures
  6. 6Chapter 5 — Data Frames: The Heart of Analysis
  7. 7Chapter 6 — Importing and Wrangling Data with the Tidyverse
  8. 8Chapter 7 — Control Flow, Functions, and Iteration
  9. 9Chapter 8 — Visualisation with ggplot2
  10. 10Chapter 9 — Statistics in R
  11. 11Chapter 10 — Reproducible Reports and Good Practice