Introduction

Caption 서울 레스토랑 폐업률 분석은 ~

Data

데이터는 서울열린데이터광장에서 배포한, 서울시 상권분석서비스 (점포-자치구) 와 서울시 상권분석서비스 (길단위인구-자치구)를 사용하였다.

Running Code

When you click the Render button a document will be generated that includes both content and the output of embedded code. You can embed code like this:

#서울시 상권분석서비스(점포-자치구) 데이터
#한글은 영문으로 변경하여 데이터 정제
#자치구 음식점업 시기별/자치구별/업종별 폐업률 데이터 **myData**로 로딩
myData <- read.csv('~/data/Seoul_Restaurant_close.csv', na.strings = c("", " ", NA))
#결측치 확인
myData[!complete.cases(myData), ]
## [1] Year_quarter     Region           Service          Number_service  
## [5] Open_rate        Open_number      Close_rate       Close_number    
## [9] Franchise_number
## <0 행> <또는 row.names의 길이가 0입니다>
View(myData)

#서울시 상권분석서비스(길단위인구-자치구)
#한글은 영문으로 변경하여 데이터 정제
#시기별/자치구별 총유동인구, 남성 유동인구, 여성 유동인구, 각 요일별 유동인구, 평일 총 유동인구, 주말 총 유동인구 데이터 **myData2**로 로딩

#일부 myData 데이터 미리보기


myData2 <- read.csv('~/data/Seoul_floating_population.csv', na.strings = c("", " ", NA))

#결측치 확인
myData2[!complete.cases(myData2), ]
##  [1] Year_quarter             Region                   Total_float_population  
##  [4] Male_float_population    Female_float_population  Mon_float_population    
##  [7] Tue_float_population     Wed_float_populaion      Thu_float_populaton     
## [10] Fri_float_population     Sat_float_population     Sun_float_population    
## [13] Weekday_float_population Weekend_float_population
## <0 행> <또는 row.names의 길이가 0입니다>
View(myData2)

You can add options to executable code like this

## [1] 4

The echo: false option disables the printing of code (only output is displayed).

##Result