Skip to content

PacktPublishing/Machine-Learning-with-R-Third-Edition

Repository files navigation

Machine Learning Summit 2025

Machine Learning Summit 2025

Bridging Theory and Practice: ML Solutions for Today’s Challenges

3 days, 20+ experts, and 25+ tech sessions and talks covering critical aspects of:

  • Agentic and Generative AI
  • Applied Machine Learning in the Real World
  • ML Engineering and Optimization

👉 Book your ticket now >>


Join Our Newsletters 📬

DataPro

The future of AI is unfolding. Don’t fall behind.

DataPro QR

Stay ahead with DataPro, the free weekly newsletter for data scientists, AI/ML researchers, and data engineers.
From trending tools like PyTorch, scikit-learn, XGBoost, and BentoML to hands-on insights on database optimization and real-world ML workflows, you’ll get what matters, fast.

Stay sharp with DataPro. Join 115K+ data professionals who never miss a beat.


BIPro

Business runs on data. Make sure yours tells the right story.

BIPro QR

BIPro is your free weekly newsletter for BI professionals, analysts, and data leaders.
Get practical tips on dashboarding, data visualization, and analytics strategy with tools like Power BI, Tableau, Looker, SQL, and dbt.

Get smarter with BIPro. Trusted by 35K+ BI professionals, see what you’re missing.

Machine Learning with R - Third Edition

This is the code repository for Machine Learning with R - Third Edition, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

About the Book

Machine learning, at its core, is concerned with transforming data into actionable knowledge. R offers a powerful set of machine learning methods to quickly and easily gain insight from your data.

Machine Learning with R, Third Edition provides a hands-on, readable guide to applying machine learning to real-world problems. Whether you are an experienced R user or new to the language, Brett Lantz teaches you everything you need to uncover key insights, make new predictions, and visualize your findings.

This new 3rd edition updates the classic R data science book with newer and better libraries, advice on ethical and bias issues in machine learning, and an introduction to deep learning. Find powerful new insights in your data; discover machine learning with R.

Instructions and Navigation

All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.

The code will look like the following:

wbcd_test_pred <- knn(train = wbcd_train, test = wbcd_test, cl = wbcd_train_labels, k=1)
CrossTable(x = wbcd_test_labels, y = wbcd_test_pred, prop.chisq=FALSE)

Software Requirements

  • R 3.5.x

  • RStudio 1.1.x

Related Products

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781788295864

About

Machine-Learning-with-R-Third-Edition, published by Packt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6

Languages