- Introducing RMarkdown!
- How to use it to make a report.
- Where to get help.
Titanic Ad For Journey From New York To Europe
Introducing RMarkdown
- Earlier, I introduced you to Markdown.
- RMarkdown is an extension on that standard that lets you embed R code in a Markdown document.
- This makes it possible to create fully integrated reports.
Sed ut perspiciatis, unde omnis iste natus error sit voluptatem
accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae
ab illo inventore veritatis et quasi architecto beatae vitae dicta
sunt, explicabo.
```{r}
data(cars)
head(cars)
```
RStudio Makes It Easy To Learn
- File -> New File
- Select R Markdown.
- Select the default output option, HTML.
- Enter a title, and name.
- Tell it where to save the new file.
Knit!
- RStudio makes it easy to get up and running with RMarkdown.
- Select Knit -> HTML and RStudio will compile your "report" to HTML.
-
The R code is INTEGRATED in the text.
- Imagine the possibilities.
Learn More
- There is more to RMarkdown than we have time to discuss today.
- Fortunately, the documentation is WONDERFUL!
- RMarkdown Site
5 Minute Break!
Titanic in Cobh Harbour, County Cork Ireland