start r-study

This commit is contained in:
2026-02-12 17:16:36 +09:00
commit 4fbeae0f00
21 changed files with 250 additions and 0 deletions
@@ -0,0 +1,27 @@
{
"id": "FEFD8679",
"path": "~/R project/r_study/기초 명령어 실습.R",
"project_path": "기초 명령어 실습.R",
"type": "r_source",
"hash": "3966952176",
"contents": "",
"dirty": false,
"created": 1769651679182.0,
"source_on_save": false,
"relative_order": 2,
"properties": {
"tempName": "Untitled1",
"source_window_id": "",
"Source": "Source",
"cursorPosition": "15,35",
"scrollLine": "0"
},
"folds": "",
"lastKnownWriteTime": 1770187041,
"encoding": "UTF-8",
"collab_server": "",
"source_window": "",
"last_content_update": 1770187041612,
"read_only": false,
"read_only_alternatives": []
}
@@ -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
@@ -0,0 +1,7 @@
{
"tempName": "Untitled1",
"source_window_id": "",
"Source": "Source",
"cursorPosition": "1,0",
"scrollLine": "0"
}
@@ -0,0 +1,7 @@
{
"tempName": "Untitled1",
"source_window_id": "",
"Source": "Source",
"cursorPosition": "15,35",
"scrollLine": "0"
}
@@ -0,0 +1,7 @@
{
"tempName": "Untitled1",
"source_window_id": "",
"Source": "Source",
"cursorPosition": "1,0",
"scrollLine": "0"
}
@@ -0,0 +1,7 @@
{
"tempName": "Untitled1",
"source_window_id": "",
"Source": "Source",
"cursorPosition": "1,0",
"scrollLine": "0"
}
+4
View File
@@ -0,0 +1,4 @@
~%2FR%20project%2Fr_study%2F%EA%B8%B0%EB%AA%85%EB%A0%B9%EC%96%B4%20%EC%8B%A4%EC%8A%B5.R="01128302"
~%2FR%20project%2Fr_study%2F%EA%B8%B0%EC%B4%88%20%EB%AA%85%EB%A0%B9%EC%96%B4%20%EC%8B%A4%EC%8A%B5.R="0CB164D0"
~%2FR%20project%2Fr_study%2Fadvance.R="11E47905"
~%2FR%20project%2Fr_study%2Fbasic.R="B0F755B1"