Practical R by Ted Kwartler

Learn R by doing, not by reading.

Code-first books, free datasets, and real course material for text mining and sports analytics in R. The same practice-driven approach taught at Harvard and GSERM, open for everyone.

2 practical R books 100+ GitHub stars on course repos free datasets & code
Taught & used at
Harvard ExtensionGSERMUniversity of St. GallenDataCampAmazon

The books

Applied analytics you can run today

Every chapter pairs clear explanation with reproducible R code, so you finish with a working skill, not just theory. Written by Ted Kwartler.

Text Mining in Practice with R
text mining / nlp

Text Mining in Practice with R

A hands-on path through NLP in R: gathering text, cleaning it, then sentiment, clustering, topic modeling, and prediction on real corpora.

Sports Analytics in Practice with R
sports / r

Sports Analytics in Practice with R

Turn play, performance, and fan data into decisions with applied R workflows for the questions teams and analysts actually ask.

Applied Sport Business Analytics
contributed chapters

Applied Sport Business Analytics

Contributed chapters on natural language processing and applied business analytics for the business of sport.

Learn online on DataCamp
interactive courses

Prefer to learn in the browser?

Four interactive courses on text mining and machine learning in R by Ted Kwartler, taken by learners worldwide.

Text Mining & NLP

From raw text to real insight

Text Mining in Practice with R is built around doing the work: pull text from the web and files, structure it into a corpus, and move through frequency analysis, sentiment, clustering, topic modeling, and prediction, all in reproducible R.

It is the same material Ted Kwartler teaches at Harvard Extension School and internationally, distilled into a reference you keep on your desk.

Get the book →

Sports Analytics

Analytics for the play and business of sport

Sports Analytics in Practice with R applies data science to sport: performance, strategy, and the commercial side of the game, each concept shipped with R code and datasets you can reproduce and adapt to your own league or team.

Great for students, analysts, and anyone moving from spreadsheets to defensible, reproducible analysis.

Get the book →
TK

About the author

Written by Ted Kwartler

Ted Kwartler is Managing Director of Responsible AI at Accenture, an instructor at Harvard Extension School, and a former field CTO for generative AI at DataRobot. He has led data teams at Amazon and Liberty Mutual and contributes to the World Economic Forum on responsible AI.

He wrote these books for the same reason he teaches: analytics is best learned by doing. For his full work, talks, and writing on AI, visit tedkwartler.com.

MD, Responsible AI @ Accenture Harvard Extension instructor Author & DataCamp course creator

FAQ

Questions, answered

Who is the author of these books?
Ted Kwartler is Managing Director of Responsible AI at Accenture, a Harvard Extension School instructor, and former field CTO for generative AI at DataRobot. See his full profile at tedkwartler.com.
Where can I get the datasets and code?
Everything is free and open on github.com/kwartler, especially the text_mining and teaching-datasets repositories.
What is Text Mining in Practice with R about?
It is a hands-on guide to natural language processing in R: data collection, cleaning, sentiment, clustering, topic modeling, and prediction, all with reproducible code you run yourself.
Do I need to know R already?
Basic familiarity helps, but the books are written to teach by doing. If you are brand new, start with the free datasets and the intro material on DataCamp.
Where can I learn more from Ted Kwartler?
Visit tedkwartler.com for his work on responsible and generative AI, plus Harvard Extension School, DataCamp, and the LLMBA program.