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. 백터 : 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..
- Total
- Today
- Yesterday
- r
- Pandas
- vscode
- Regression
- 코로나
- git
- template
- 자가격리
- arduino
- Python
- 코로나19
- 확진
- Model
- analysis
- CSV
- pyserial
- sublime text
- Django
- MacOS
- ERP
- 라즈베리파이
- COVID-19
- SSH
- DAQ
- raspberrypi
- Templates
- DS18B20
- server
- github
- Raspberry Pi
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |