TidyTuesday: Analyzing CO2 Emissions in R using the Tidyverse

preview_player
Показать описание
Analyzing countries' food consumption and CO2 emissions in R for TidyTuesday. I explore how to do basic data wrangling and manipulations as wells as visualizations using ggplot2 and dplyr.

PC Setup (Amazon Affiliates)
Рекомендации по теме
Комментарии
Автор

Clearly it is important from the standpoint of climate change to know what our sources of CO2 are. This is an interesting exercise but I find it rather difficult to interpret the results in a meaningful way. Many questions arise - namely the source of the CO2. The inherit assumption in this exercise seems to be that both the carbon and the oxygen are somehow derived from the food itself. My gut tells me that the assumption cannot be correct. My sense is that we have a bunch of confounding variables that are not accounted for. Therefore any correlations observed here may be of little value. Please don't misunderstand me. What I am saying is that this is a fine exercise for learning and playing around with R but not for making meaningful scientific inference.

haraldurkarlsson
Автор

Thanks Andrew. This was neat and useful! Looking forward to seeing more !

sathviknishanth
Автор

Andrew - in terms of pivot_wider this works:
food_consumption_long <- food_consumption %>%
pivot_wider(names_from = food_category,
values_from = c(consumption, co2_emmission))

haraldurkarlsson
Автор

Hi Andrew, where did you learn R and Shiny so well, so solid? Thank you

patricior
Автор

hi first of all I like your videos, could you please add all the short cuts key you use? which shortcut key do you use to open rmarkdown?

siamaksiamak