Data Computing
Minimum price
Suggested price

Data Computing

An Introduction to Wrangling and Visualization in R

About the Book

Based on a no-prerequisite short course the author developed at Macalester College, Data Computing uses R, a leading software application for statistics and data analysis which is freely available for all widely-used platforms.  The book's short chapters and the clarity of notation supported by Hadley Wickham's hugely popular dplyr and ggplot2 packages help the reader to develop skills at a measured pace.

Praise for Data Computing

No matter what you do, you can use data to do it better. Gaining that superpower requires you to learn some programming tools and some mental tools. This book will teach you both: you'll get the mental building blocks to think about data analysis, and the computational tools to turn those thoughts into code. If you're just learning to swim in the data ocean, Danny's lucid writing and thoughtful approach makes this book a great place to start!  --- Hadley Wickham, Chief Scientist, RStudio

The book covers in a systematic way not only the stuff I've picked up in a fragmentary, bit-at-a-time way, but more important for me, stuff I wanted to know, and stuff I needed to know without realizing it.  Better yet, Kaplan's book makes it all easily accessible. Just what our profession needs! --- George Cobb, Professor Emeritus of Mathematics and Statistics, Mt. Holyoke College

About the Author

Daniel Kaplan
Daniel Kaplan

Daniel Kaplan is a Harvard-trained, award-winning teacher. He has two decades of experience teaching statistics and modeling, computing, and applied mathematics.  His graduate training in biomedical engineering and economics, as well as extensive consulting, give him an applied perspective: using data to serve a purpose.

Kaplan is the DeWitt Wallace Professor of Mathematics, Statistics, and Computer Science at Macalester College in Saint Paul, Minnesota, USA. His textbooks include 

  • Data Computing
  • Statistical Modeling: A Fresh Approach 
  • An Introduction to Scientific Computation and Programming in Python
  • Understanding Nonlinear Dynamics.

Table of Contents

1. Tidy Data

2. Computing with R

3. R Command Patterns

4. Files and Documents

5. Introduction to Data Graphics

6. Frames, Glyphs, and other Components of Graphics

7. Wrangling and Data Verbs

8. Graphics and their Grammar

9. More Data Verbs

10. Joining Two Tables

11. Wide versus Narrow Data Layouts

12. Ranks and Ordering

13. Networks

14. Collective Properties of Cases

15. Scraping and Cleaning Data

16. Using Regular Expressions

17. Machine Learning


  • Projects
    • Popular Names
    • Bird Species
    • World Cities
    • Stocks and Dividends
    • Statistics of Gene Expression
    • Bicycle Sharing
    • Inspecting Restaurants
    • Street or Road
    • Scraping Nuclear Reactors
  • Solutions to selected exercises
  • Readings and Notes

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.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, 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.

Learn more about writing on Leanpub