Here’s some ordinary text. You can use Markdown syntax to add more
features, e.g. here’s a link, here’s some
bold text, and here’s some inline code
.
You can also add images, footnotes, blockquotes, and more. See linked
cheat sheet above for more.
You can easily incorporate R code into an Rmd file, with outputs and plots that auto-update. Here’s an example code chunk named “chunk1”.
data <- c(3, 6, 6, 2, 4, 1, 5)
mean(data)
## [1] 3.857143
hist(data)
You can even refer to R objects inside text, e.g. the sample mean and standard deviation are 3.8571429 and 1.9518001.
Here’s a second section.