www.crosshyou.info

政府統計の総合窓口のデータや、OECDやUCIやのデータを使って、Rの練習をしています。ときどき、読書記録も載せています。

OECD Meat Consumption Data Analysis 6 - POULTRY Consumption is positively correlated with GDP

f:id:cross_hyou:20210919075836j:plain

Photo by corina ardeleanu on Unsplash 

www.crosshyou.info

This post is following of above post.

I have GDP data like below CSV file.

f:id:cross_hyou:20210919080056p:plain

So, let's combine this GDP data and Meat Consumption data.

f:id:cross_hyou:20210919080421p:plain

Next, I use inner_join() function to combine df2 dataframe and gdp dataframe.

f:id:cross_hyou:20210919080559p:plain

Let's see the result.

f:id:cross_hyou:20210919080732p:plain

usd is gross GDP value, capit is per capita GDP.

summary if df2

f:id:cross_hyou:20210919080959p:plain

We see year range is changed. 1990 ~ 2020.

Now, let's see capit and 4 KG_CAP data.

f:id:cross_hyou:20210919082211p:plain

f:id:cross_hyou:20210919082223p:plain

I see shkg is not so much correlated with capit.

Let's see correlation with capit and 4 KG_CAPs by country.

f:id:cross_hyou:20210919083340p:plain

f:id:cross_hyou:20210919083350p:plain

We see some countries have negative correlations and some contries have positive correlations.

How about pikg: PIG KG_CAP?

f:id:cross_hyou:20210919083451p:plain

f:id:cross_hyou:20210919083506p:plain

How about POULTRY?

f:id:cross_hyou:20210919083902p:plain

f:id:cross_hyou:20210919083913p:plain

All countires have positive correlations with POULTRY.

Last, how about shkg?

f:id:cross_hyou:20210919084319p:plain

f:id:cross_hyou:20210919084329p:plain

We see some countries have negative correlation while some countries have positive correlations.

per capita POULTRY Consumption and per capita GDP are positively correlated in all countries.

That's it. Thank you!

Next post is

 

www.crosshyou.info

 



To read the 1st post,

 

www.crosshyou.info