Skip to content

Commit 4c51949

Browse files
committed
dataset
1 parent ec04b55 commit 4c51949

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

R/문법/dataset.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## 데이터셋 관련 명령어
2+
3+
1. 불러오기
4+
5+
다음과 같이 `read.csv()` 함수를 이용하여 불러올 수 있다.
6+
7+
```R
8+
data <- read.csv("data.csv")
9+
```
10+
11+
내장된 dataset의 경우 `library()` 함수를 이용하여 불러올 수 있다.
12+
13+
```R
14+
library(datasets)
15+
data(iris)
16+
```
17+
18+
여기서 `iris`는 R에 내장된 dataset으로, 3가지 종의 iris 개체 150개에 대해 조사한 자료로써, 각 개체의 꽃받침과 꽃잎의 길이와 넓이에 대한 정보가 담겨있다.
19+
20+
---

0 commit comments

Comments
 (0)