Computer Engineering/빅데이터
-
R studio dplyr라이브러리 / ggplot2 기초Computer Engineering/빅데이터 2023. 5. 7. 10:42
library(dplyr) 데이터 변환 https://kilhwan.github.io/rprogramming/ch-dataTransformation.html Chapter 7 dplyr을 이용한 데이터 변환 | R 프로그래밍 (개정판) 데이터를 분석하려면 데이터를 분석에 적절한 형식으로 변환하는 전처리가 필요하다. 또한 기본적인 분석을 위해서도 데이터를 요약하는 작업이 필요하다. 이 장에서는 정돈 형식의 데이터 프 kilhwan.github.io library(ggplot2) https://kilhwan.github.io/rprogramming/ch-visualization.html Chapter 8 ggplot2를 이용한 데이터 시각화 | R 프로그래밍 (개정판) 이 장에서는 ggplot2를 이용하여 ..
-
SAS / SPSS File R에서 불러오기Computer Engineering/빅데이터 2023. 5. 4. 20:24
install.packages("sas7bdat") library(sas7bdat) setwd("H:/내 드라이브/[DAC]Lab/K-nhanes") hn21_allsas = read.sas7bdat('hn21_all.sas7bdat') library(dplyr) glimpse(hn21_allsas) # SAS 파일을 R에서 불러오기 : sas7bdat R 스튜디오에서 SAS 파일을 불러오기 위해 "sas7bdat"라는 패키지를 install library(sas7bdat) 작업 환경을 불러오고자 하는 sas.file 이 있는 곳으로 지정 ! 나 같은 경우에는 구글 드라이브 특정 파일 내에 따로 지정해두었다. 최종적으로 read.sas7bdat 를 통해 sas 파일 호출 !! # SPSS 파일을 R에서 ..