-
Notifications
You must be signed in to change notification settings - Fork 18
/
markdown_knitr.Rmd
57 lines (33 loc) · 1.01 KB
/
markdown_knitr.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
Title
========================================================
This is an R Markdown document. Markdown is a simple formatting syntax for authoring web pages (click the **MD** toolbar button for help on Markdown).
When you click the **Knit HTML** button a web page will be generated that includes both content as well as the output of any embedded R code chunks within the document.
Alternatively, you can use `knit2html()` on your .Rmd file function from **knitr** package.
You can embed an R code chunk like this:
```{r}
summary(cars)
```
You can also embed plots, for example:
```{r fig.width=7, fig.height=6}
plot(cars)
```
------
markdown syntax
========================================================
**Different headers**
Header 1
=========================
Header 2
-------------------------
### Header 3
#### Header 4
**Lists**
* Item 1
* Item 2
* Item 2a
* Item 2b
**Tables**
First Header | Second Header
------------- | -------------
Content Cell | Content Cell
Content Cell | Content Cell