- why use markdown and RMarkdown
- author an RMarkdown html presentation
- then quickly use code above to author an RMarkdown word document
March 8, 2017
optional
6. examine build log & use output file
recommended for docs
recommended for ppts
[markdown wikipage](https://en.wikipedia.org/wiki/Markdown)
\*italics\*
<div class="columns-2">
</div>
summary(cars)
summary(cars)
## speed dist ## Min. : 4.0 Min. : 2.00 ## 1st Qu.:12.0 1st Qu.: 26.00 ## Median :15.0 Median : 36.00 ## Mean :15.4 Mean : 42.98 ## 3rd Qu.:19.0 3rd Qu.: 56.00 ## Max. :25.0 Max. :120.00
echo=
, eval=
, include=
TRUE
eval
uated and within the document is echo
'd or repeated, and output is include
d```{r echo = TRUE, eval = TRUE, include = TRUE}
summary(cars)
```
```{r echo = FALSE}col1 = c("coolness level", "community support")
col2 = c("high", "high")
col3 = c("low", "low")
df <- cbind(col1,col2,col3)
colnames(df) <- c("what's different?","R","SAS")
knitr::kable(df,padding=0)
```
what's different? | R | SAS |
---|---|---|
coolness level | high | low |
community support | high | low |
```{r echo = FALSE, out.width = "350px"}
knitr::include_graphics("filepath of any jpeg or other figure")
```
recommended for docs