First R Markdown File ======================================================== The importance of being able to make a Word file report of your statistical analyses has been [described.](http://www.r-statistics.com/2013/03/write-ms-word-document-using-r-with-as-little-overhead-as-possible/) Click the **MD** toolbar button to get a quick summary of markdown syntax used here. Click the **Knit HTML** button to produce a web page that includes both this content and output of the embedded R code chunks like this: ```{r} dim(cars) summary(cars) ``` How nice it is that the input lines do not have > in front of them. Ouputs are preceeded by ## and are in lighter background boxes. As an example of inline R code, we note that the cars dataframe contains `r nrow(cars)` cars. You can also embed R plots, for example: ```{r fig.width=6, fig.height=5} plot(cars) ``` and have latex equations like $\lambda^2=\rho-1$. Or show regular R code like this ```{r} y=1:10 mean(y) ``` or perhaps like this ``` #This text is displayed verbatim / preformatted y=1:10 mean(y) ``` [Here](http://quantifyingmemory.blogspot.co.il/2013/02/reproducible-research-with-r-knitr.html) is another link for making word files. Local figures such as this one can also be embedded into your html file. ![Model of Jackson and Radivoyevitch 2013](figure/rcj.png) As a demo of block quotes, a friend once said: > It's always better to give > than to receive. First Header is a long one | Second Header ------------- | ------------- Cell11 | Cell12 Cell21 | Cell22 lists use dashes - item1 - item2 superscript^2 and ~~strikethrough~~ *italics* and **bold**