Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
presentations/2022-03-replication/rs/rs-eg.Rmd
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
54 lines (40 sloc)
1.43 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "Example rmarkdown document" | |
date: "24/03/2022" | |
author: | |
- James Brusey | |
- Ann Other Author | |
documentclass: scrartcl | |
classoption: twoside | |
geometry: false | |
subtitle: false | |
output: | |
pdf_document: | |
includes: | |
in_header: header.tex | |
--- | |
# Introduction | |
This is a sample markdown document. | |
I can make a new paragraph using a blank line and a numbered list just with: | |
1. this item | |
2. this other item | |
3. and so forth | |
Math symbols are also easy either inline $K: \Re \times \Re \rightarrow \{0, 1\}$ or as display math, | |
$$ x = \int _{0} ^{\infty} \frac{1}{y^2}. $$ | |
In addition, you can use the power of R to process your data-set and display results as tables or graphs. | |
```{r cars, warning=FALSE} | |
library(knitr) | |
kable(summary(cars)) | |
``` | |
## Including Plots | |
You can also embed plots, for example: | |
```{r pressure, echo=FALSE} | |
plot(pressure) | |
``` | |
Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code ```{r setup, include=FALSE} | |
knitr::opts_chunk$set(echo = TRUE) | |
``` | |
## R Markdown | |
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>. | |
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this: | |
that generated the plot. |