start r-study
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
## 기초 명령어 실습 ##
|
||||
|
||||
1+1
|
||||
1:10
|
||||
dd = c(1:10)
|
||||
|
||||
## c() -> 같은 종류의 요소(numeric, int, float등)만 있을때
|
||||
## list() -> 다양한 종류의 요소가 들어올때
|
||||
|
||||
dd[-10]
|
||||
|
||||
|
||||
## 기본유형 ##
|
||||
|
||||
x1 = 3 # numeric
|
||||
x2 = "Love is choice" # character
|
||||
x3 = FALSE # logical
|
||||
x4 = 3-2i # complex
|
||||
x5 = '123' # character
|
||||
x6 = 'false' # character
|
||||
x7 = 'FLASE' # character
|
||||
|
||||
str(x1)
|
||||
|
||||
### 문자 - 정수 - 논리
|
||||
### 결측값은 95%까지
|
||||
|
||||
### 정규분포는 30번이상한것으로 해야한다
|
||||
|
||||
xx1 <- c(1:100)
|
||||
xx1
|
||||
is.na(xx1)
|
||||
table(is.na(xx1))
|
||||
|
||||
x1 = c(1,'love',TRUE,2+3i)
|
||||
x1
|
||||
Reference in New Issue
Block a user