본문 바로가기

분류 전체보기

(208)
데이터 분석 기본 함수 #데이터 분석 df_csv_exam <- read.csv("d:/easy_r/sample_data/score.csv", stringsAsFactors = F) # 데이터 앞부분 확인 head(df_csv_exam) # 기본 6행 까지 출력 head(df_csv_exam, 10) # 10행 까지 출력 # 데이터 뒷부분 확인 tail(df_csv_exam) # 뒤에서 6행 까지 출력 tail(df_csv_exam, 10) # 뒤에서 10행 까지 출력 # 뷰어창에 데이터 ..
우분투 Postgresql 설치 # 우분투 16.04 postgresql 설치 # 설치 sudo apt-get install postgresql 비밀번호 > Y # 설치확인 dpkg -l | grep postgres # 관리자계정 확인 cat /etc/passwd | grep postgres # 상택확인 /etc/init.d/postgresql status # 관리자 계정 비밀번호 변경 sudo -u postgres psql template1 ALTER USER postgres with encrypted password 'xxxxxxxx'; # 접속확인..
RData 파일 저장 불러오기 # RData 파일 활용 # CSV 파일 불러오기 df_csv_exam <- read.csv("d:/easy_r/sample_data/score.csv", stringsAsFactors = F) df_csv_exam # RData 파일로 저장 save(df_csv_exam, file="d:/easy_r/sample_data/score.rda") # 데이터 프레임 삭제 rm(df_csv_exam) df_csv_exam # RData 불러오기 load("d:/easy_r/sample_data/score.rda") df_csv_exam
외부데이터 이용하기 - CSV # CSV 파일 불러오기 # header = F # 헤더가 없음 # stringsAsFactors = F # 변수를 factor 타입이 아닌 문자 타입으로 불러와 오류가 없음 df_csv_exam <- read.csv("d:/easy_r/sample_data/score.csv", stringsAsFactors = F) df_csv_exam # rm(df_csv_exam) # df_csv_exam
외부데이터 이용하기 - 엑셀 # 외부데이터 이용하기 - 엑셀 install.packages("readxl") library(readxl) # 엑셀불러오기 # df_exam <- read_excel("d:/easy_r/sample_data/score.xlsx", col_names=F) # 헤더 정보가 없을 경우 사용 # df_exam <- read_excel("d:/easy_r/sample_data/score.xlsx", sheet=1) # sheet 지정 하여 사용 df_exam <- read_excel("d:/easy_r/sample_data/score.xlsx..
데이터 프레임 테스트 # 변수만들기 english <- c(90,80,70) english math <- c(100,90,80) math # 데이터 프레임 만들기 df_midterm <- data.frame(english, math) df_midterm class <- c(1,2,3) class df_midterm <- data.frame(english,math,class) df_midterm # 분석하기 mean(df_midterm$english) mean(df_midterm$math)
우분투 Oracle 11g 설치 * 우분투 오라클 설치 => 우분투 데스크탑 환경에서 설치 함 * 설치 파일 다운 http://www.oracle.com/technetwork/indexes/downloads/index.html#database -> Database -> Database 11g Standard / Enterprise Edition -> 로그인 -> 파일저장 ================================================================================ 1. 우분투 설정 ..
우분투 Jenkins 설치 Jenkins Debian packages[http://redbyzan.github.io/writing/jenkins-setting/] wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add - sudo sh -c 'echo deb https://pkg.jenkins.io/debian binary/ > /etc/apt/sources.list.d/jenkins.list' sudo apt-get update sudo apt-get install jenkins sudo vi /etc/default/jenkins // port 충돌방지 HTTP_PORT=8080 -> HT..