CO2.csv contains the data CO2.R contains R code
The data is annual from 1960 to 2021. The oil production data is collected from the OPEC (Organization of the Petroleum Exporting Countries, https://asb.opec.org/data/ASB_Data.php) and CO2 emission data is from Our World in Data (https://ourworldindata.org/co2-emissions).