R Reference Card For Data Mining
R Reference Card For Data Mining
2018-12-20
Preface
Note: This book has been published by Chapman & Hall/CRC. The online
version of this book is free to read here (thanks to Chapman & Hall/CRC),
and licensed under the Creative Commons Attribution-NonCommercial-
ShareAlike 4.0 International License.
https://bookdown.org/yihui/rmarkdown/?fbclid=IwAR2Kcr4Z_aOg2KbuFINDoYqpjAxrqtLX4tSdK2rNqlWA-Mu7iLlxsHXLr4Q 1/6
1/2/2019 R Markdown: The Definitive Guide
https://bookdown.org/yihui/rmarkdown/?fbclid=IwAR2Kcr4Z_aOg2KbuFINDoYqpjAxrqtLX4tSdK2rNqlWA-Mu7iLlxsHXLr4Q 2/6
1/2/2019 R Markdown: The Definitive Guide
The rmarkdown package (J. Allaire, Xie, McPherson, et al. 2018) was first
created in early 2014. During the past four years, it has steadily evolved
into a relatively complete ecosystem for authoring documents, so it is a
good time for us to provide a definitive guide to this ecosystem now. At this
point, there are a large number of tasks that you could do with R Markdown:
https://bookdown.org/yihui/rmarkdown/?fbclid=IwAR2Kcr4Z_aOg2KbuFINDoYqpjAxrqtLX4tSdK2rNqlWA-Mu7iLlxsHXLr4Q 3/6
1/2/2019 R Markdown: The Definitive Guide
Epictetus once said, “Wealth consists not in having great possessions, but
in having few wants.” The spirit is also reflected in Markdown. If you can
control your preoccupation with pursuing typesetting features, you should
be much more efficient in writing the content and can become a prolific
https://bookdown.org/yihui/rmarkdown/?fbclid=IwAR2Kcr4Z_aOg2KbuFINDoYqpjAxrqtLX4tSdK2rNqlWA-Mu7iLlxsHXLr4Q 4/6
1/2/2019 R Markdown: The Definitive Guide
R Markdown documents are often portable in the sense that they can be
compiled to multiple types of output formats. Again, this is mainly due to the
simplified syntax of the authoring language, Markdown. The simpler the
elements in your document are, the more likely that the document can be
converted to different formats. Similarly, if you heavily tailor R Markdown to
a specific output format (e.g., LaTeX), you are likely to lose the portability,
because not all features in one format work in another format.
Last but not least, your computing results will be more likely to be
reproducible if you use R Markdown (or other knitr-based source
documents), compared to the manual cut-and-paste approach. This is
https://bookdown.org/yihui/rmarkdown/?fbclid=IwAR2Kcr4Z_aOg2KbuFINDoYqpjAxrqtLX4tSdK2rNqlWA-Mu7iLlxsHXLr4Q 5/6
1/2/2019 R Markdown: The Definitive Guide
because the results are dynamically generated from computer source code.
If anything goes wrong or needs to be updated, you can simply fix or update
the source code, compile the document again, and the results will
automatically updated. You can enjoy reproducibility and convenience at the
same time.
References
Xie, Yihui. 2015. Dynamic Documents with R and Knitr. 2nd ed. Boca
Raton, Florida: Chapman; Hall/CRC. https://yihui.name/knitr/.
Allaire, JJ, Yihui Xie, Jonathan McPherson, Javier Luraschi, Kevin Ushey,
Aron Atkins, Hadley Wickham, Joe Cheng, Winston Chang, and Richard
Iannone. 2018. Rmarkdown: Dynamic Documents for R. https://CRAN.R-
project.org/package=rmarkdown.
https://bookdown.org/yihui/rmarkdown/?fbclid=IwAR2Kcr4Z_aOg2KbuFINDoYqpjAxrqtLX4tSdK2rNqlWA-Mu7iLlxsHXLr4Q 6/6