This repo is for teaching a workshop on computationally reproducible research at MIT. Examples in this repo are using R as a tool.
This is a practice project using the EDGAR CO2 emissions data from 1970 – 2018.
The dataset EDGAR CO2 emissions data from 1970 – 2018 is downloaded from the GitHub repository at https://github.com/openclimatedata/edgar-co2-emissions on January 23, 2020.
The dataset is timeseries 1970–2018 of CO₂ emissions by country and sector (Buildings, Power Industry, Transport, Other industrial combustion, Other sectors) in Mt CO₂/year.
Unit: Mt CO₂ per year
Dataset © European Union, 1995-2020.https://data.jrc.ec.europa.eu/licence/com_reuse Authorized reuse with the source acknolwedged as below.
"Source: European Commission, Joint Research Centre (JRC)/Netherlands Environmental Assessment Agency (PBL). Emission Database for Global Atmospheric Research (EDGAR), release version 4.3.1 http://edgar.jrc.ec.europa.eu/overview.php?v=431, 2016."
"Reference: Monica Crippa, Greet Janssens-Maenhout, Frank Dentener, Diego Guizzardi, Katerina Sindelarova, Marilena Muntean, Rita Van Dingenen, Claire Granier: Forty years of improvements in European air quality: regional policy-industry interactions with global impacts, Atmos. Chem. Phys., 16, 3825-3841, doi:10.5194/acp-16-3825-2016, 2016."
The dataset was originally reported in Crippa, M., Oreggioni, G., Guizzardi, D., Muntean, M., Schaaf, E., Lo Vullo, E., Solazzo, E., Monforti-Ferrario, F., Olivier, J.G.J., Vignati, E., Fossil CO2 and GHG emissions of all world countries - 2019 Report, EUR 29849 EN, Publications Office of the European Union, Luxembourg, 2019, ISBN 978-92-76-11100-9, https://doi.org/10.2760/687800, JRC117610.
More about the dataset and similar climate datasets can be found at https://openclimatedata.net/
Run this Project in the cloud
To run this code without installing anything, choose one of the following two means.
Run a copy of it on the interactive environment Renku at https://renkulab.io/projects/yel/reproducible-research-r/environments. Click on starting a New environment there.
Click on the launch binder badge above. This will launch Rstudio on a free, small, cloud instance on binder.org. It may take a two or three minutes to launch the server and initialise Rstudio.
Once the browder tab with the RStudio running in it opens up, you can find the file under code folder named CO2EmissionsAnalysis.Rmd in the Files tab of the bottom and right pane. Open the file by clicking on it. Then, click the Knit button just above the code to generate the report CO2EmissionAnalysis.html. You may also generate the report by typing source('run.r') into the left bottom Console and hit return key. This will generate the report in HTML and saved under documents folder.
Structue of the project