Table of contents
- Using R Markdown as analysis script
- How to generate an HTML report
- Embedding R code
- Formatting the report
- References
Using R Markdown as analysis script
This tutorial describes how to use R Markdown. R Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. Example: this tutorial itself is generated with R Markdown.
For more details on using R Markdown see http://rmarkdown.rstudio.com.
Some advantages of using R Markdown:
R code can be embedded in the report, so it is not necessary to keep the report and R script separately. Including the R code directly in a report provides structure to analyses.
The report text is written as normal text, so no knowledge of HTML coding is required.
The output is an HTML file that includes pictures, code blocks R output and text. No additional files are needed, everything is incorporated in the HTML file. So easy to send the report via mail, or place it as paper package on your website.
These HTML reports enhance collaboration: It is much more easy to comment on an analysis when the R code, the R output and the plots are available in the report.


雷达卡



京公网安备 11010802022788号







