The Essentials of Data Science

Welcome to the companion site for The Essentials of Data Science: Knowledge Discovery Using R by Graham Williams, published by CRC Press in 2017. The book is a journey to knowledge discovery using R, and introduces the idea of using templates to rapidly get started with data science.

Here you will find the templates from the book, extended OnePageR guides that go beyond the book, and the datasets used throughout. Data science changes rapidly, and the Data Science Desktop Survival Guide carries this material forward with regular updates.

Cover artwork from The Essentials of Data Science: a decision tree, violin plots, bar charts and density plots

Templates

The templates are LaTeX documents using KnitR to include dynamic R code and its output. Each .Rnw file is processed to produce the .R script and the .pdf document.

End-to-End Samples

TemplateTaskFiles
portsData visualisation RnwRPDFData (xlsx)
auditBinary classification RnwRPDF
weatherAUSBinary classification RnwRPDF

Data Preparation

A starting point for any data science task focused on ingesting, wrangling, cleaning, and transforming data in preparation for analytic modelling.

TemplateTaskFiles
dataData preparation RnwRPDF

Modelling and Reporting

TemplateTaskFiles
modelPredictive modelling (in development) RnwR
reportProject report outline Rnw

OnePageR Guides

These extended guides go beyond the material in the book.

GuideTopicFiles
IntroROIntroducing R RnwRPDF
DataOData RnwRPDF
DateTimeODates and times RPDF
StringsOStrings RPDF
StyleOCoding style RPDF
TemplateOTemplates RnwRPDF
VisualiseOVisualising data RJuliaPDF

Data

Public datasets for exploring data science with the templates and guides.

DatasetSizeDownload
audit185 KBaudit.csv
banking4.9 MBbanking.csv
Unbalanced credit card transactions56 MBcreditcard.csv
ferry27 MBferry.csv
ports9 KBports.xlsx
telco977 KBtelco.csv
weatherAUS16 MBweatherAUS.csv

The credit card dataset is described in A. Dal Pozzolo, O. Caelen, R. A. Johnson and G. Bontempi, Calibrating Probability with Undersampling for Unbalanced Classification, IEEE Symposium Series on Computational Intelligence (SSCI), Cape Town, South Africa, 2015. It is also available from Kaggle, and is provided here with permission.

MLHub

MLHub provides a selection of pre-built machine learning models that support the material from the book, run from the command line, including the ports visualisation demonstration used in the templates above.