crosshyou

主にクロス表(分割表)分析をしようかなと思いはじめましたが、あまりクロス表の分析はできず。R言語の練習ブログになっています。

OECD Meat Consumption Data Analysis 3 - PIG and POULTRY are on up trend while BEEF and SHEEP are on down trend.

f:id:cross_hyou:20210918075109j:plain

Photo by Nathan Anderson on Unsplash 

www.crosshyou.info

This post is following of above post.

Let's see coun: country.

f:id:cross_hyou:20210918075630p:plain

We see all country have 40 observations.

Let's see year

f:id:cross_hyou:20210918075821p:plain

We see all year have 38 observations.
So, df2 data frame is 40 coun * 38 year = 1520 observations.

f:id:cross_hyou:20210918080058p:plain

Let's see histograms for KG_CAP data.

First, bekg: BEEF KG_CAP

f:id:cross_hyou:20210918080354p:plain

f:id:cross_hyou:20210918080415p:plain

pikg: PIG KG_CAP

f:id:cross_hyou:20210918080602p:plain

f:id:cross_hyou:20210918080612p:plain

pokg: POULTRY KG_CAP

f:id:cross_hyou:20210918080742p:plain

f:id:cross_hyou:20210918080813p:plain

shkg: SHEEP KG_CAP

f:id:cross_hyou:20210918081042p:plain

f:id:cross_hyou:20210918081054p:plain

We see POULTRY is most normaly spread.

Next, let's see time trend.

We will see average KG_CAP by year.

First, bekg: BEEF KG_CAP

f:id:cross_hyou:20210918081753p:plain

f:id:cross_hyou:20210918081804p:plain

pikg: PIG KG_CAP time trend

f:id:cross_hyou:20210918082326p:plain

f:id:cross_hyou:20210918082337p:plain

pokg: POULTRY KG_CAP time trend

f:id:cross_hyou:20210918082552p:plain

f:id:cross_hyou:20210918082604p:plain

shkg: SHHEP KG_CAP time trend

f:id:cross_hyou:20210918082847p:plain

f:id:cross_hyou:20210918082857p:plain

We see BEEF and SHEEP are on down trend and PIG and POULTRY are on up trend.
That's it. Thank you!

Next post is

 

www.crosshyou.info

 

To read the 1st post,

 

www.crosshyou.info