R codes to import data from google sheet:

아래 R codes Google sheet 에서 직접 데이터를 불러서 분석하는 것입니다.

데이터는 아래에서 가져와서 구글에 저장했습니다.

Source: https://tradingeconomics.com/

myurl<-“https://docs.google.com/spreadsheets/d/e/2PACX-1vTQ5OXZ5SbiFJeBuyaDGmJ4iEDLaYkVBu5AWA2jvG1xIXv3oULdOfi5U-zZ8F3QqBBuHmLPWmGoNuAZ/pub?gid=0&single=true&output=csv&#8221;

Trading_Econ<-read.csv(url(myurl))

summary(Trading_Econ)

attach(Trading_Econ)

plot(Inflation.rate,Jobless.rate)

hist(GDP.YoY,col=’red’)

attach(Trading_Econ)

barplot(GDP.YoY, main=’GDP YoY’, col=’blue’,

names.arg=Country, cex.names = 0.5)

barplot(GDP.QoQ, main=’GDP QoQ’, col=’red’,

names.arg=Country, cex.names = 0.5)

hist(GDP.QoQ,col=’red’)

barplot(Inflation.rate, main=’Inflation Rate’, col=’red’,

names.arg=Country, cex.names = 0.5)

hist(Inflation.rate,col=’red’)

barplot(Jobless.rate, main=’Jobless Rates’, col=’yellow’,

names.arg=Country, cex.names = 0.5)

hist(Jobless.rate,col=’yellow’)