
Requirements - Editor : VScode - python 3.10 - requests 2.28.1 : builtin function - BeautifulSoup4 4.11.1 : pip3 install 1. 공공데이터포탈 회원가입 및 데이터 활용신청 web site : data.go.kr 검색어 굴뚝 데이터활용신청하기 오픈 API : 한국환경공단 굴뚝자동측정기기 측정결과 활용신청 마이페이지 ... 아래 인증키 생성 code 작성에 필요한 요청변수 및 출력결과 예시 2. python code # -*- coding: utf-8 -*- # python3의 경우 삭제 from urllib.parse import urlencode, unquote import requests import pprin..
INTRO reshape를 이용한 데이터 재정렬 Rstudio Console> install.packages("reshape") #참고 : reshape2는 reshape의 확장판 개념, 설치 오래걸림 Rstudio Console> install.packages("reshape2") reshape reshape 패키지는 melt, cast를 사용하여 데이터를 재구성하거나 밀집화된 데이터를 유연하게 생성해줌 melt 녹이다, cast 전 데이터 형태 추출 syntax : var = melt(data, id=) cast 굳히다, 원하는 형태로 데이터를 변형 syntax : var = melt(data, id=) a : 엑셀 피벗팅과 유사하게 자료 변환, 피벗테이블과는 다르게 구별된 순서가 부여됨 b : y축..

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