Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Example code and data for "Practical Data Science with R" 2nd Edition by Nina Zumel and John Mount.

We are very proud to present early access to our book Practical Data Science with R 2nd Edition.

This is the book for you if you are a data scientist, want to be a data scientist, or want to work with data scientists. This is a good "what next" book for analysts and programmers wanting to know more about machine learning and data wrangling. PracticalDataScienceCover

Our goal is to present data science from a pragmatic, practice-oriented viewpoint. The book will complement other analytics, statistics, machine learning, data science and R books with the following features:

  • This book teaches you how to work as a data scientist. Learn how important listening, collaboration, honest presentation and iteration are to what we do.
  • The key emphasis of the book is process: collecting requirements, loading data, examining data, building models, validating models, documenting and deploying models to production.
  • We provide over 10 significant example datasets, and demonstrate the concepts that we discuss with fully worked exercises using standard R methods. We feel that this approach allows us to illustrate what we really want to teach and to demonstrate all the preparatory steps necessary to any real-world project. Every result and almost every graph in the book is given as a fully worked example.
  • This book is scrupulously correct on statistics, but presents topics in the context and order a practitioner worries about them. For example we emphasize construction of predictive models and model evaluation and prediction over the more standard topics of summary statistics and packaged procedures.

In support of Practical Data Science with R 2nd Edition we are providing:

  • Table of contents, and a free example chapter available from the Manning book page .
  • A public repository of data sets (under a Creative Commons Attribution-NonCommercial 3.0 Unported License where possible).
  • Downloadable example code.

The first edition is available in print as 416 pages softbound black and white or as a color eBook. The print version comes with a complimentary eBook version (an insert when the book is purchased new), in all three formats: PDF, ePub, and Kindle. The eBook can be purchased separately from Manning Publications. The second edition is under preview subscription (or MEAP, Manning Early Access Program) and includes an eBook copy of the previous edition (Practical Data Science with R First Edition) at no additional cost!


Available for order now on the Manning book page.


For more about the book please check out:


Additional materials

All code excerpts from the book:

More from the authors:

Example data sets:

Includes works derived from others (data sets) remain controlled by them. We are distributing as these parties have allowed and not making any claim or grant of additional rights or license.


You can download all of the examples and code by following the "git clone" or "download zip" instructions at our master repository:

We share some installation instruction here.

License for additional documentation, notes, code, and example data:

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

No guarantee, indemnification or claim of fitness is made regarding any of these items.

No claim of license on works of others or derived data.

Errata )


Code, Data, and Examples for Practical Data Science with R 2nd edition (Nina Zumel and John Mount)







No releases published


No packages published