This some text
(insert R code here)
This is some more text
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)
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
\[x^{2}=\frac{x^{3}}{ln(x)}(\mu)\]
rnorm(100,10,1)
## [1] 9.776371 10.713485 10.725549 11.828706 12.024578 8.520060 10.235482
## [8] 9.650064 9.965484 9.869901 10.271438 10.026658 9.976959 9.359127
## [15] 9.736573 10.302096 11.453907 10.899254 13.084893 11.959469 11.397119
## [22] 10.811771 9.637289 9.314147 10.114686 9.440843 8.866158 10.376665
## [29] 10.306811 10.502893 9.266370 11.258662 12.569999 10.467231 9.803214
## [36] 8.203722 10.200568 10.366188 9.870796 9.418649 8.914019 7.885304
## [43] 8.816267 7.574246 9.034847 12.284013 9.618258 10.318497 11.076295
## [50] 11.462246 10.909303 11.930867 10.176330 8.635642 11.159542 8.175373
## [57] 8.942343 7.970300 9.171372 10.447687 11.644174 9.301982 10.398430
## [64] 9.689318 8.941506 10.154896 10.857866 9.806765 9.561606 10.460946
## [71] 10.507936 10.465661 9.583084 9.025979 10.174165 9.721434 11.721924
## [78] 11.175818 10.046535 10.323952 11.324264 11.192239 9.231365 9.994710
## [85] 9.842222 9.958780 9.725723 11.406730 9.611749 9.787087 10.226038
## [92] 10.494641 8.965989 11.017738 10.653710 8.832953 9.737853 12.062458
## [99] 11.525206 9.689771
plot(c(1,2,3,4,5),c(33,39,94,58,39))
i like typing in this. It is bold. I want to put in an equation \(Y^2=5\).
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)
First Header
This some text. I spelled this \(\mu\) wrong.
(insert R code here)
\[x^{2}=\frac{x^{3}}{ln(x)}(\mu) \] Second header
This is some more text
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)