- Front Matter
- Dedication
- About This Book
- Book Roadmap
- Introduction: The Day R Became Less Strange
- Part 1: Foundations
- 1. Before the First Command: Why R Changes the Way Data Work Thinks
- 2. Understanding the R Ecosystem
- 3. Data Before Types: Atoms, Containers, and the First Shape of R Thinking
- 4. Why Values Behave Differently: Data Types and the Hidden Identity of Data
- 5. How Data Holds Together: Structures, Containers, and the Shape of R Work
- Part 2: Language of R
- 6. Syntax as Structure of Meaning: How R Reads Code
- 7. Logic in R: How Code Makes Judgments
- 8. Built-in Functions: R’s Ready-Made Action System
- 9. User-Defined Functions: Naming Actions of Your Own
- 10. Debugging R: A Practical Framework for Reading and Fixing Errors
- Part 3: Data Workflows: From Isolated Commands to Reproducible Analysis
- 11. Packages and the R Ecosystem in Practice: From Tools to Reproducible Workflows
- 12. Importing Data: From Files on Disk to Objects R Can Work With
- 13. Cleaning and Preparing Data: Making Evidence Trustworthy
- 14. Selecting, Filtering, and Transforming Data: Shaping Evidence for Analysis
- 15. Summarising and Grouping Data: Turning Shaped Rows into Summary Evidence
- Part 4: Seeing and Communicating Insight
- 16. Data Visualization: Turning Patterns into Pictures
- 17. Clarity and Control: Designing Visualisations People Can Understand
- 18. Communication from Plots to Story: Designing Visuals People Can Understand
- Part 5: Reproducible, Collaborative, and Scalable Workflows
- 19. Reproducible Reports with Quarto: Turning Analysis into a Document
- 20. Data Connections: Moving Beyond Local Files
- 21. Collaboration and Version Control: Making Work Traceable
- 22. From Functions to Packages: Building Reusable R Tools
- 23. Reliability and Automation: Making Workflows Repeatable
- 24. Performance and Scale: Making R Work Efficiently
- 25. Final Integration Project: Building an End-to-End Analytical System
- Author’s Note
- References
Not So Short Introduction to R
A Practical Learning Journey from First Contact to Reproducible Data Systems
If R has ever felt powerful but confusing, this book gives you the missing map. Not So Short Introduction to R guides researchers, analysts, graduate students, Excel/SPSS/STATA users, and emerging data workers from fragile spreadsheets and copied scripts into reproducible analytical workflows they can understand, explain, and trust.
Minimum price
$199
$249
You pay
Author earns
About
About the Book
Many people do not struggle with R because they are careless, lazy, or incapable. They struggle because they are introduced to R through scattered commands before they are given a clear mental model of how the system works.
Not So Short Introduction to R was written for that reader.
This book is for researchers, analysts, graduate students, lecturers, Excel users, SPSS/STATA users, and emerging data workers who know that their current way of working is no longer enough. You may already manage data in spreadsheets. You may have copied R scripts from tutorials. You may have asked AI tools to generate code. You may even have produced a few outputs in R before. Yet something still feels fragile: the code runs once but breaks later, error messages feel cryptic, file paths become confusing, packages behave unpredictably, and the connection between the command and the result remains unclear.
This book begins from that real frustration.
Rather than pretending that R is instantly simple, the book teaches R as a practical system that can be understood step by step. It does not rush the reader into memorising commands. It explains the ideas that make the commands meaningful: what objects are, how values behave, why data types matter, how data structures hold information, what functions do, why packages extend R, and how each part fits into a professional workflow.
The journey starts with first contact: meeting R, RStudio, the console, scripts, objects, values, and basic syntax. It then builds toward the work that serious data users actually need to perform: importing data, inspecting files, cleaning messy datasets, transforming variables, summarising evidence, handling missing values, creating visualisations, writing reproducible reports with Quarto, using Git for traceable work, automating repeated tasks, thinking about performance, and completing a final end-to-end analytical project.
The book is practical, but it is not shallow. It is beginner-friendly, but it does not treat the reader as unintelligent. Its central aim is to help readers move from copy-and-paste survival to informed control. That means learning not only what to type, but why the code behaves the way it does, how to diagnose problems, and how to build workflows that can be repeated, reviewed, corrected, and trusted.
A major thread running through the book is reproducibility. Real data work is not only about producing one chart or one table. It is about creating a path from raw evidence to final output that another person, or your future self, can understand and rerun. For researchers, students, analysts, and professionals, this is not a luxury. It is part of doing serious work.
Not So Short Introduction to R is therefore not a promise that you will master R overnight. It is a guided learning journey for people who want something more durable than quick tricks. If you have felt overwhelmed by R, uncertain about your workflow, or too dependent on fragile manual processes, this book offers a structured route into clarity, confidence, and reproducible analytical practice.
It is for readers who are ready to stop merely getting by with data work and begin building systems they can trust.
Author
About the Author
James Daniel is the author of The Excel Refugee Migration, a book written for professionals whose jobs depend on data but whose workflows have outgrown the shape of Excel. The book is aimed at readers in finance, HR, operations, reporting, and business analysis who live inside recurring exports, brittle formulas, workbook version chaos, and reporting cycles that steal more time than they should. Rather than offering technical performance or abstract programming theory, Daniel writes from the pressure point of real work: messy files, repeated summaries, deadline-driven reporting, and the quiet fatigue of maintaining systems that should already be lighter. His approach is practical, structured, and respectful of working professionals who do not want to become developers but do want cleaner, repeatable, more trustworthy workflows in R. The result is a book built around relief, control, and better use of analytical judgment.
Contents
Table of Contents
Get the free Community Edition
You can get the free Community Edition in PDF or EPUB just by sharing your name and email address with the author, or you can just click this link to read a shorter sample online...
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Write and Publish on Leanpub
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.