-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmy_second_rmarkdown.Rmd
64 lines (41 loc) · 936 Bytes
/
my_second_rmarkdown.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
title: "An RMarkdown example report"
author: "Dr. Joseph P. Yurko"
date: "8/19/2020"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, eval = TRUE)
```
# This is a main heading
## a subsection
### sub-sub section
#### another low level heading
##### 5 hashtags
This is text in the document. We write just like we do in Word (or Google Docs).
To create a new line we need to
include two
spaces.
This should be a new line.
###### 6 hashtags
Some more text.
## Code in RMarkdown
This is a sentence that will include in-line code by adding 2 + 2 = `r 2 + 2`.
### code chunks
```{r}
# this is a comment
## here's another comment
### NOT a section header
```
Place another code chunk below.
```{r, eval=TRUE}
str(iris)
```
Here's an example code chunk with an incomplete line of code.
```{r, eval=TRUE}
x <- 3.1
```
Add 2 to the variable `x`.
```{r}
x + 2
```