
INTRO 1. paste, substr 2. as. : 객체변환 3. date, format 1. paste, substr paste 입력받은 문자를 하나로 붙여주며 "sep=" 옵션을 이용해 문자열들 사이에 구분자(separator) 사입 가능 substr 문자열에서 특정 문자열을 추출하는 기능 test_etc_fun.R rm(list=ls()) setwd = "~/Rcoding" ## paste number = 1:10 alphabet = c('a','b','c') paste(number,alphabet) paste(number,alphabet,sep=" to the ") ## substr substr("BigDataAnalysis", 1,4) contrys = c('Korea', 'Japan', ..

INTRO 1. 반복문 : iterational code block 2. 조건문 : conditional code block 3. 사용자 정의 함수 : costomized function 1. 반복문 for for (i in range) { print(i) } while x = 1 while ( x= 50) over50[i] = 1 else over50[i] = 0 } print(rand_a) print(over50) cat("count for results : ",sum(over50),"\n") 출력결과 > source("~/Rcoding/test_conditional_code_block.R", echo=TRUE) > rm(list = ls()) > # setwd("/Users/[YourMacID]/R..

INTRO 1. 벡터형 변수 2. 행렬/데이터프레임 test_indexing.R rm(list = ls()) setwd("/Users/[YourMacID]/Rcoding") a_chr = c('a', 'b', 'c', 'd', 'e') ## vector indexing a_chr[1] a_chr[-1] a_chr[c(2,4)] a_chr[1:3] ## dataframe indexing income = c(100,200,150,300,900) car = c('kia','hyundai','kia','toyota','lexus') marriage=c(FALSE,FALSE,FALSE,TRUE,TRUE) mydat = data.frame(income,car,marriage) print(mydat) mydat[3,..

INTRO 1. 수열 2. 수치계산 1. 수열 rep(arg1, arg2) : arg1을 arg2만큼 숫자 벡터 생성 arg1 : start number arg2 : repeat number seq(arg1, arg2) : arg1부터 arg2까지 1씩 증가하는 숫자 벡터 생성 arg1 : start number arg2 : end number seq(arg1, arg2, by=arg3) : arg1부터 arg2까지 arg3씩 증가하는 숫자 벡터 생성 arg1 : start number arg2 : end number by=arg3 : number of equal difference seq(arg1, arg2, length=arg3) : arg1부터 arg2까지 분할 숫자 arg3으로 숫자 벡터 생성 a..
INTRO 첨부파일 data : csv, txt, xls, xlsx # clear environment : rm(list = ls()) 1. csv, txt file import test_import_1.R rm(list = ls()) setwd("/Users/[YourMacID]/Rcoding") fpath = "./data/" fname = c("data_csv.csv","data_txt.txt","data_xls.xls","data_xlsx.xlsx") fpath_list = paste(fpath,fname,sep="") data_csv fname = c("data_csv.csv","data_txt.txt","data_xls.xls","data_xlsx.xlsx") > fpath_list = pas..
INTRO 1. 백터 : vector 2. 행렬 : matrix 3. 데이터 프레임 : dataframe 1. Vector - 하나 이상의 스칼라 원소들을 갖는 집합 - 숫자, 문자, 논리 연산자 등 - 'c'(concentration, 연결)를 통해 선언 2. Matrix - m(행,row) x n(열,col) 형태 데이터 구조 3. DataFrame - R에서 가장 널리 사용 - 2차원 목록 데이터 구조 test_data.R ## vector by c x1 = c(1,10,24,40) y1 = c("사과", "바나나", "오렌지") z1 = c(TRUE, FALSE, TRUE) x2 z1 = c(TRUE, FALSE, TRUE) > x2 y2 z2 ## vector combine > xy1 ## ma..

R (프로그래밍 언어) : wiki R은 통계 계산과 그래픽을 위한 프로그래밍 언어이자 소프트웨어 환경이다. 오픈소스로 쓰여졌으며 무료이다. 뉴질랜드 오클랜드 대학의 로버트 젠틀맨(Robert Gentleman)과 로스 이하카(Ross Ihaka)에 의해 시작되어 현재는 R 코어 팀이 개발하고 있다. R은 또한 GNU의 GPL 하에 배포되는 S 프로그래밍 언어의 구현으로 때때로 GNU S 로도 불린다. R는 통계 소프트웨어 개발과 자료 분석에 널리 사용되고 있으며, 패키지 개발이 용이해 통계 소프트웨어 개발에 많이 쓰이고 있다. 소개 R의 문법과 통계처리 부분은 AT&T 벨 연구소가 개발했던 S를 참고했고, 데이터 처리부분은 스킴으로부터 영향을 받았다. R는 다양한 통계 기법과 수치 해석 기법을 지원한다..

INTRO klayout install nazca install pyclipper install 1. klayout 설치 : Viewer/Editor(gds, Gerber, dxf) - brew install $ brew upgrade $ brew search klayout $ brew install cask $ brew install klayout klayout-0.27.8 : 2022.03.08 기준 # 참고 : 사이트 설치 https://www.klayout.de/build.html 2. nazca 설치 : download & pip install path-to download site : https://nazca-design.org/download/ 다운로드된 경로 확인 후 pip install ..
- Total
- Today
- Yesterday
- Python
- Pandas
- COVID-19
- analysis
- ERP
- Model
- github
- r
- SSH
- 자가격리
- 코로나
- MacOS
- arduino
- 확진
- CSV
- sublime text
- pyserial
- Raspberry Pi
- 라즈베리파이
- 코로나19
- DS18B20
- vscode
- git
- server
- raspberrypi
- Regression
- Templates
- Django
- DAQ
- template
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |