Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
00203_example_10.1_of_section_10.2.1_files/figure-markdown_github
rCh03_files/figure-markdown_github
rCh05_files/figure-markdown_github
rCh06_files/figure-markdown_github
rCh07_files/figure-markdown_github
rCh08_files/figure-markdown_github
rCh09_files/figure-markdown_github
rXA_files/figure-markdown_github
rXB_files/figure-markdown_github
replacements
00203_example_10.1_of_section_10.2.1.Rmd
00203_example_10.1_of_section_10.2.1.html
00203_example_10.1_of_section_10.2.1.md
InstallAll.Rmd
InstallAll.html
InstallAll.md
README.html
README.md
RunExamples.Rproj
mkHTMLs.py
rCh01.Rmd
rCh01.html
rCh01.md
rCh02.Rmd
rCh02.html
rCh02.md
rCh03.Rmd
rCh03.html
rCh03.md
rCh04.Rmd
rCh04.html
rCh04.md
rCh05.Rmd
rCh05.html
rCh05.md
rCh06.Rmd
rCh06.html
rCh06.md
rCh07.Rmd
rCh07.html
rCh07.md
rCh08.Rmd
rCh08.html
rCh08.md
rCh09.Rmd
rCh09.html
rCh09.md
rCh10.Rmd
rCh10.html
rCh10.md
rXA.Rmd
rXA.html
rXA.md
rXB.Rmd
rXB.html
rXB.md
runDir.R

README.md

One of the big points of Practical Data Science with R is to supply a large number of fully worked examples. Our intent has always been for readers to read the book, and if they wanted to follow up on a data set or technique to find the matching worked examples in the project directory of our book support materials git repository.

Some readers want to work much closer to the sequence in the book. To make working along with book easier we extracted all book examples and shared them with our readers (in a Github directory, and a downloadable zip file, press "Raw" to download). The direct extraction from the book guarantees the files are in sync with our revised book. However there are trade-offs, sometimes (for legibility) the book mixed input and output without using R's comment conventions. So you can't always just paste everything. Also for a snippet to run you may need some libraries, data and results of previous snippets to be present in your R environment.

To help these readers we have added a new section to the book support materials: knitr markdown sheets that work all the book extracts from each chapter. Each chapter and appendix now has a matching markdown file that sets up the correct context to run each and every snippet extracted from the book. In principle you can now clone the entire zmPDSwR repository to your local machine and run all the from the CodeExamples directory by using the RStudio project in RunExamples. Correct execution also depens on having the right packages installed so we have also added a worksheet showing everything we expect to see installed in one place: InstallAll.Rmd (note some of the packages require external dependencies to work such as a C compiler, curl libraries, and a Java framework to run).