1 First Header

Insert inline LaTex between dollar signs, e.g. \(\mu\). A great online equation editor for LaTex may be found at CodeCogs (https://latex.codecogs.com/eqneditor/editor.php)

1.1 First Subheader

Can insert LaTex on its own line between double dollar signs, e.g.

\[ x+\frac{1}{2}=\gamma_1 \]

Text between double stars is bold. Bulleted Lists have a - in front

  • List item 1

  • List item 2

2 Second Header

Add a new R code chunk by clicking the Insert Chunk button on the toolbar

head(cars)
##   speed dist
## 1     4    2
## 2     4   10
## 3     7    4
## 4     7   22
## 5     8   16
## 6     9   10

If knitting to html, dataframes with many columns may be paged with rmarkdown:paged_table. Will not work with Word or PDF

#rmarkdown::paged_table(head(cars))

Dataframes in Word and PDF (as well at html) may be alternatively formatted with knitr::kable.

knitr::kable(head(cars))
speed dist
4 2
4 10
7 4
7 22
8 16
9 10

Output may be displayed without code using echo=FALSE. This is not recommended unless you show the complete code at the end of the document.

## [1] 15.4

Graphics/Plots may be displayed as well

plot(cars)

3 Complete R Code

It is a good idea to include this at the end of every RMarkdown document

head(cars)
knitr::kable(head(cars))
mean(cars$speed)
plot(cars)