Photo by Wolfgang Hasselmann on Unsplash
Hello! This post, I will anaysis OECD Meat Consumption data using R.
I got a CSV file like below from OECD web site(Agricultural output - Meat consumption - OECD Data)
Firstly, I load tidyverse package, which is very useful package for data science.
Let's read the CSV file with read_csv() function.
Let's see each variables.
coun is country name.
We see all countries have 320 observations.
indi is indicator.
indi ha sonly one value, MEATCONSUMP, so we need not keep this variable in our dataframe.
subj means subject.
subj has 4 kinds of value, SHEEP, POULTRY, PIG and BEEF. Each subj has 3040 observations. I convert subj to factor class.
meas is measure.
meas has two kind of value, THND_TINNE and KG_CAP. I convert meas to factor class.
feq is frequency.
freq ha only one value, A, I will remove freq from my data frame.
year is year.
The oldest year is 1990, the newest year is 2029! Maybe this data frame is including estimated data.
valu is meat consumption value.
Median is 24.77 and Mean is 2291.58, so I see there is skewd data.
Let's see summary of my data frame.
That's it!
Thank you!
Next post is