일반문단의 경우 앞에 #없이 사용합니다. 그리고, 엔터키는 앞서 말씀드린 줄바꿈으로 바로 작용하지 않습니다.
줄바꿈(실제는 문단바꿈)을 위해서는 둘줄 띄어서 사용합니다.
줄바꿈의 경우 Markdown에서는 HTML의
태그를 사용합니다.
물리적 구조는 이탤릭체, 뚱뚱체, 위첨자, 아래첨자 를 사용할 수 있습지다.
순서없는 단락 * 작동여부 확인, 위의 단락과 분리되어야 함
순서있는 단락
표 만든는 것은 조금 불편합니다.
| 제목열 | 제목열2 | 제목열3 |
|---|---|---|
| 내용1 | 내용2 | 내용3 |
| 내용4 | 내용 5 | 내용 6 |
| 제목열 | 제목열2 | 제목열3 |
|---|---|---|
| 내용1 | 내용2 | 내용3 |
| 내용4 | 내용 5 | 내용 6 |
한림대학교 홈페이지
상단의 두번째 제목 으로 이동
상관계수1는 두 변수의 상관을 나타내는 값입니다.
R Logo는
수식을 넣어봅시다.
x = y 와 \(x = y\) 비교 \(x^2\), \(x_i\) \(\overline{x}\) \(A \cup B\) \(A \cap B\) \(\int_{a}^{b}\)
summary( cars )
## speed dist
## Min. : 4.0 Min. : 2.00
## 1st Qu.:12.0 1st Qu.: 26.00
## Median :15.0 Median : 36.00
## Mean :15.4 Mean : 42.98
## 3rd Qu.:19.0 3rd Qu.: 56.00
## Max. :25.0 Max. :120.00
## speed dist
## Min. : 4.0 Min. : 2.00
## 1st Qu.:12.0 1st Qu.: 26.00
## Median :15.0 Median : 36.00
## Mean :15.4 Mean : 42.98
## 3rd Qu.:19.0 3rd Qu.: 56.00
## Max. :25.0 Max. :120.00
cars
## speed dist
## 1 4 2
## 2 4 10
## 3 7 4
## 4 7 22
## 5 8 16
## 6 9 10
## 7 10 18
## 8 10 26
## 9 10 34
## 10 11 17
## 11 11 28
## 12 12 14
## 13 12 20
## 14 12 24
## 15 12 28
## 16 13 26
## 17 13 34
## 18 13 34
## 19 13 46
## 20 14 26
## 21 14 36
## 22 14 60
## 23 14 80
## 24 15 20
## 25 15 26
## 26 15 54
## 27 16 32
## 28 16 40
## 29 17 32
## 30 17 40
## 31 17 50
## 32 18 42
## 33 18 56
## 34 18 76
## 35 18 84
## 36 19 36
## 37 19 46
## 38 19 68
## 39 20 32
## 40 20 48
## 41 20 52
## 42 20 56
## 43 20 64
## 44 22 66
## 45 23 54
## 46 24 70
## 47 24 92
## 48 24 93
## 49 24 120
## 50 25 85
다음과 같이 입력해 보세요. 그리고 어떤 결과가 나오는지 확인해 보세요.
datatable(cars)
R Code 수행에 따른 메세지를 출력하고 싶지 않을때
library( tidyverse )
에러가 발생해도 문서 생성
ls(
## Error: <text>:2:0: unexpected end of input
## 1: ls(
## ^
plot(cars)
plot(cars)
plot(cars)
제동거리의 평균은 43 으로
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:
summary(cars)
## speed dist
## Min. : 4.0 Min. : 2.00
## 1st Qu.:12.0 1st Qu.: 26.00
## Median :15.0 Median : 36.00
## Mean :15.4 Mean : 42.98
## 3rd Qu.:19.0 3rd Qu.: 56.00
## Max. :25.0 Max. :120.00
You can also embed plots, for example:
Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.