From 4fbeae0f007ef54f1885c5472894edb2efd36c3b Mon Sep 17 00:00:00 2001 From: DH K Date: Thu, 12 Feb 2026 17:16:36 +0900 Subject: [PATCH] start r-study --- .RData | Bin 0 -> 367 bytes .Rhistory | 55 ++++++++++++++++++ .Rproj.user/F3FE0F57/pcs/files-pane.pper | 9 +++ .Rproj.user/F3FE0F57/pcs/packages-pane.pper | 7 +++ .Rproj.user/F3FE0F57/pcs/source-pane.pper | 3 + .../F3FE0F57/pcs/windowlayoutstate.pper | 14 +++++ .Rproj.user/F3FE0F57/pcs/workbench-pane.pper | 6 ++ .Rproj.user/F3FE0F57/rmd-outputs | 5 ++ .Rproj.user/F3FE0F57/saved_source_markers | 1 + .Rproj.user/F3FE0F57/sources/per/t/FEFD8679 | 27 +++++++++ .../F3FE0F57/sources/per/t/FEFD8679-contents | 36 ++++++++++++ .Rproj.user/F3FE0F57/sources/prop/01128302 | 7 +++ .Rproj.user/F3FE0F57/sources/prop/0CB164D0 | 7 +++ .Rproj.user/F3FE0F57/sources/prop/11E47905 | 7 +++ .Rproj.user/F3FE0F57/sources/prop/B0F755B1 | 7 +++ .Rproj.user/F3FE0F57/sources/prop/INDEX | 4 ++ .../shared/notebooks/patch-chunk-names | 0 .Rproj.user/shared/notebooks/paths | 2 + basic.R | 1 + r_study.Rproj | 16 +++++ 기초 명령어 실습.R | 36 ++++++++++++ 21 files changed, 250 insertions(+) create mode 100644 .RData create mode 100644 .Rhistory create mode 100644 .Rproj.user/F3FE0F57/pcs/files-pane.pper create mode 100644 .Rproj.user/F3FE0F57/pcs/packages-pane.pper create mode 100644 .Rproj.user/F3FE0F57/pcs/source-pane.pper create mode 100644 .Rproj.user/F3FE0F57/pcs/windowlayoutstate.pper create mode 100644 .Rproj.user/F3FE0F57/pcs/workbench-pane.pper create mode 100644 .Rproj.user/F3FE0F57/rmd-outputs create mode 100644 .Rproj.user/F3FE0F57/saved_source_markers create mode 100644 .Rproj.user/F3FE0F57/sources/per/t/FEFD8679 create mode 100644 .Rproj.user/F3FE0F57/sources/per/t/FEFD8679-contents create mode 100644 .Rproj.user/F3FE0F57/sources/prop/01128302 create mode 100644 .Rproj.user/F3FE0F57/sources/prop/0CB164D0 create mode 100644 .Rproj.user/F3FE0F57/sources/prop/11E47905 create mode 100644 .Rproj.user/F3FE0F57/sources/prop/B0F755B1 create mode 100644 .Rproj.user/F3FE0F57/sources/prop/INDEX create mode 100644 .Rproj.user/shared/notebooks/patch-chunk-names create mode 100644 .Rproj.user/shared/notebooks/paths create mode 100644 basic.R create mode 100644 r_study.Rproj create mode 100644 기초 명령어 실습.R diff --git a/.RData b/.RData new file mode 100644 index 0000000000000000000000000000000000000000..d72b7fb23f827c2c2003ca5ce091c3415f254791 GIT binary patch literal 367 zcmV-#0g(P5iwFP!0000017*@@PXaL*!12P}IZ$!$1#U&uJKPf#aN%MoZV@q(knn=U z@KyBF_{og_;*scGli#)1JWta;Z9JR~xY8~mgd$YUDHM&N&{D~$e^m(8$&W**qMqJa zUgX;>XM%O2(!NBsSt6JCw)~kQd; N`v*{*?)o1C002eCu3rEE literal 0 HcmV?d00001 diff --git a/.Rhistory b/.Rhistory new file mode 100644 index 0000000..83a03b4 --- /dev/null +++ b/.Rhistory @@ -0,0 +1,55 @@ +install.packages(c("mgcv", "survival")) +a <- 7 +cls +## 기초 명령어 실습 ## +## 기초 명령어 실습 ## +1+1 +1:10 +dd = c(1:10) +dd +dd [2:3,] +dd [c(2:3),] +dd [2:3] +dd[2:3] +dd[1:9] +dd[-1] +dd[-10] +dd[-10] +detach("package:base", unload = TRUE) +install.packages("foreign") +x1 = 3 +x2 = "Love is choice" +x3 = FALSE +x4 = 3-2i +str(x1) +str(x2) +str(x3) +str(x4) +str(x1,x2,x3,x4) +4 +str(x4) +str(x5) +str(x5) +x5 = '123' +str(x5) +str(x1) +str(x3) +str(x7) +x7 = 'FLASE' +str(x7) +x6 = 'false' # character +str(x7) +x8 = 8.8 +x8 = 8.8 +str(x8) +xx1 <- c(1:100) +xx1 +xx1 <- c(1:100) +xx1 +is.na() +is.na(xx1) +table(is.na(xx1)) +x1 = c(1,'love',TRUE,2+3i) +x1 +install.packages('ggplot2') +install.packages('dplyr') diff --git a/.Rproj.user/F3FE0F57/pcs/files-pane.pper b/.Rproj.user/F3FE0F57/pcs/files-pane.pper new file mode 100644 index 0000000..377334c --- /dev/null +++ b/.Rproj.user/F3FE0F57/pcs/files-pane.pper @@ -0,0 +1,9 @@ +{ + "sortOrder": [ + { + "columnIndex": 2, + "ascending": true + } + ], + "path": "~/R project/r_study" +} \ No newline at end of file diff --git a/.Rproj.user/F3FE0F57/pcs/packages-pane.pper b/.Rproj.user/F3FE0F57/pcs/packages-pane.pper new file mode 100644 index 0000000..ee7c4ff --- /dev/null +++ b/.Rproj.user/F3FE0F57/pcs/packages-pane.pper @@ -0,0 +1,7 @@ +{ + "installOptions": { + "installFromRepository": true, + "libraryPath": "/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library", + "installDependencies": true + } +} \ No newline at end of file diff --git a/.Rproj.user/F3FE0F57/pcs/source-pane.pper b/.Rproj.user/F3FE0F57/pcs/source-pane.pper new file mode 100644 index 0000000..902cc6f --- /dev/null +++ b/.Rproj.user/F3FE0F57/pcs/source-pane.pper @@ -0,0 +1,3 @@ +{ + "activeTab": 0 +} \ No newline at end of file diff --git a/.Rproj.user/F3FE0F57/pcs/windowlayoutstate.pper b/.Rproj.user/F3FE0F57/pcs/windowlayoutstate.pper new file mode 100644 index 0000000..fd90725 --- /dev/null +++ b/.Rproj.user/F3FE0F57/pcs/windowlayoutstate.pper @@ -0,0 +1,14 @@ +{ + "left": { + "splitterpos": 285, + "topwindowstate": "NORMAL", + "panelheight": 1013, + "windowheight": 1051 + }, + "right": { + "splitterpos": 630, + "topwindowstate": "NORMAL", + "panelheight": 1013, + "windowheight": 1051 + } +} \ No newline at end of file diff --git a/.Rproj.user/F3FE0F57/pcs/workbench-pane.pper b/.Rproj.user/F3FE0F57/pcs/workbench-pane.pper new file mode 100644 index 0000000..43f45f7 --- /dev/null +++ b/.Rproj.user/F3FE0F57/pcs/workbench-pane.pper @@ -0,0 +1,6 @@ +{ + "TabSet1": 0, + "TabSet2": 2, + "Sidebar": -1, + "TabZoom": {} +} \ No newline at end of file diff --git a/.Rproj.user/F3FE0F57/rmd-outputs b/.Rproj.user/F3FE0F57/rmd-outputs new file mode 100644 index 0000000..3f2ff2d --- /dev/null +++ b/.Rproj.user/F3FE0F57/rmd-outputs @@ -0,0 +1,5 @@ + + + + + diff --git a/.Rproj.user/F3FE0F57/saved_source_markers b/.Rproj.user/F3FE0F57/saved_source_markers new file mode 100644 index 0000000..2b1bef1 --- /dev/null +++ b/.Rproj.user/F3FE0F57/saved_source_markers @@ -0,0 +1 @@ +{"active_set":"","sets":[]} \ No newline at end of file diff --git a/.Rproj.user/F3FE0F57/sources/per/t/FEFD8679 b/.Rproj.user/F3FE0F57/sources/per/t/FEFD8679 new file mode 100644 index 0000000..c603e47 --- /dev/null +++ b/.Rproj.user/F3FE0F57/sources/per/t/FEFD8679 @@ -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": [] +} \ No newline at end of file diff --git a/.Rproj.user/F3FE0F57/sources/per/t/FEFD8679-contents b/.Rproj.user/F3FE0F57/sources/per/t/FEFD8679-contents new file mode 100644 index 0000000..e65d89e --- /dev/null +++ b/.Rproj.user/F3FE0F57/sources/per/t/FEFD8679-contents @@ -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 diff --git a/.Rproj.user/F3FE0F57/sources/prop/01128302 b/.Rproj.user/F3FE0F57/sources/prop/01128302 new file mode 100644 index 0000000..86f51fd --- /dev/null +++ b/.Rproj.user/F3FE0F57/sources/prop/01128302 @@ -0,0 +1,7 @@ +{ + "tempName": "Untitled1", + "source_window_id": "", + "Source": "Source", + "cursorPosition": "1,0", + "scrollLine": "0" +} \ No newline at end of file diff --git a/.Rproj.user/F3FE0F57/sources/prop/0CB164D0 b/.Rproj.user/F3FE0F57/sources/prop/0CB164D0 new file mode 100644 index 0000000..75bff43 --- /dev/null +++ b/.Rproj.user/F3FE0F57/sources/prop/0CB164D0 @@ -0,0 +1,7 @@ +{ + "tempName": "Untitled1", + "source_window_id": "", + "Source": "Source", + "cursorPosition": "15,35", + "scrollLine": "0" +} \ No newline at end of file diff --git a/.Rproj.user/F3FE0F57/sources/prop/11E47905 b/.Rproj.user/F3FE0F57/sources/prop/11E47905 new file mode 100644 index 0000000..86f51fd --- /dev/null +++ b/.Rproj.user/F3FE0F57/sources/prop/11E47905 @@ -0,0 +1,7 @@ +{ + "tempName": "Untitled1", + "source_window_id": "", + "Source": "Source", + "cursorPosition": "1,0", + "scrollLine": "0" +} \ No newline at end of file diff --git a/.Rproj.user/F3FE0F57/sources/prop/B0F755B1 b/.Rproj.user/F3FE0F57/sources/prop/B0F755B1 new file mode 100644 index 0000000..86f51fd --- /dev/null +++ b/.Rproj.user/F3FE0F57/sources/prop/B0F755B1 @@ -0,0 +1,7 @@ +{ + "tempName": "Untitled1", + "source_window_id": "", + "Source": "Source", + "cursorPosition": "1,0", + "scrollLine": "0" +} \ No newline at end of file diff --git a/.Rproj.user/F3FE0F57/sources/prop/INDEX b/.Rproj.user/F3FE0F57/sources/prop/INDEX new file mode 100644 index 0000000..961e1e5 --- /dev/null +++ b/.Rproj.user/F3FE0F57/sources/prop/INDEX @@ -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" diff --git a/.Rproj.user/shared/notebooks/patch-chunk-names b/.Rproj.user/shared/notebooks/patch-chunk-names new file mode 100644 index 0000000..e69de29 diff --git a/.Rproj.user/shared/notebooks/paths b/.Rproj.user/shared/notebooks/paths new file mode 100644 index 0000000..9335dcb --- /dev/null +++ b/.Rproj.user/shared/notebooks/paths @@ -0,0 +1,2 @@ +/Users/dh/R project/r_study/basic.R="38F7B9A1" +/Users/dh/R project/r_study/기초 명령어 실습.R="CF8199EA" diff --git a/basic.R b/basic.R new file mode 100644 index 0000000..86ac3ce --- /dev/null +++ b/basic.R @@ -0,0 +1 @@ +a <- 7 diff --git a/r_study.Rproj b/r_study.Rproj new file mode 100644 index 0000000..9241cc8 --- /dev/null +++ b/r_study.Rproj @@ -0,0 +1,16 @@ +Version: 1.0 + +RestoreWorkspace: Default +SaveWorkspace: Default +AlwaysSaveHistory: Default + +EnableCodeIndexing: Yes +UseSpacesForTab: Yes +NumSpacesForTab: 4 +Encoding: UTF-8 + +RnwWeave: Sweave +LaTeX: pdfLaTeX + +AutoAppendNewline: Yes +StripTrailingWhitespace: Yes diff --git a/기초 명령어 실습.R b/기초 명령어 실습.R new file mode 100644 index 0000000..e65d89e --- /dev/null +++ b/기초 명령어 실습.R @@ -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