금융데이터분석공모전

hiblue
Hiblue (토론 | 기여) 사용자의 2018년 2월 12일 (월) 16:04 판

(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
이동: 둘러보기, 검색
연도별 합계구하기
aggregate(kospi~year(date),data1, sum)
엑셀 불러오기
data1<-read.xlsx(xlsxFile = "C:/Users/heayoung/Desktop/실습/대욱이공모전/sample.xlsx", sheet = 1, skipEmptyRows = TRUE)
10개의 행만 보이기
population[c(1:10),]
KOSPI 월별 중간값
aggregate(kospi~year(date)+month(date), data1, median)
각 년도별 인구 최대값(년도별 인구수)
aggregate(population[2:37], population, max)