── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(readxl)
Data setup
Scope 1:
foe the scope 1, i selected the data from climatewatchdata. org and the data describes total GHG emissions with LULUCF from UNFCCC.
Warning: One or more parsing issues, call `problems()` on your data frame for details,
e.g.:
dat <- vroom(...)
problems(dat)
Rows: 1387 Columns: 17
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (16): ISO, Country, Data source, Sector, Gas, Unit, 2021, 2020, 2019, 20...
dbl (1): 2016
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
View(emission)emission
# A tibble: 1,387 × 17
ISO Country `Data source` Sector Gas Unit `2021` `2020` `2019` `2018`
<chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
1 ANNEXI Annex-I … UNFCCC_AI Total… Aggr… MtCO… 15400… 15244… 16400… 16783…
2 ANNEXI Annex-I … UNFCCC_AI Total… Aggr… MtCO… 13737… 13435… 14686… 14969…
3 ANNEXI Annex-I … UNFCCC_AI Total… CO2 MtCO… 12351… 12075… 13162… 13506…
4 ANNEXI Annex-I … UNFCCC_AI Energy Aggr… MtCO… 12210… 11981… 13101… 13445…
5 ANNEXI Annex-I … UNFCCC_AI Energy CO2 MtCO… 11461… 11202… 12269… 12597…
6 ANNEXI Annex-I … UNFCCC_AI Total… CO2 MtCO… 10525… 10101… 11288… 11522…
7 USA United S… UNFCCC_AI Total… Aggr… MtCO… 6340.… 6025.… 6617.… 6754.…
8 USA United S… UNFCCC_AI Total… Aggr… MtCO… 5586.0 5249.… 5913.… 5989.7
9 USA United S… UNFCCC_AI Energy Aggr… MtCO… 5196.… 4893.… 5460.… 5589.…
10 USA United S… UNFCCC_AI Total… CO2 MtCO… 5032.… 4714.… 5262.… 5377.8
# ℹ 1,377 more rows
# ℹ 7 more variables: `2017` <chr>, `2016` <dbl>, `2015` <chr>, `2014` <chr>,
# `2013` <chr>, `2012` <chr>, `2011` <chr>
Warning: There was 1 warning in `mutate()`.
ℹ In argument: `across(`2011`:`2021`, ~parse_number(as.character(.)), .names =
"year_{.col}")`.
Caused by warning:
! 2 parsing failures.
row col expected actual
85 -- a number N/A
86 -- a number N/A
# A tibble: 944 × 8
iso3 Country scope sector Gas Unit year emission_value
<chr> <chr> <chr> <chr> <chr> <chr> <chr> <dbl>
1 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2011 6116.
2 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2012 5885.
3 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2013 6092.
4 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2014 6130.
5 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2015 6066.
6 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2016 5763.
7 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2017 5788.
8 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2018 5990.
9 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2019 5914.
10 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2020 5250.
# ℹ 934 more rows
The data I have collected here is from OCED and the data describes total CO2 emissions embodied in gross exports.
emissions1_export <-read_excel("~/SPR24_SUSFIN/Emissions of Exports of Goods and Services.xlsx")emissions1_export
Warning: There was 1 warning in `mutate()`.
ℹ In argument: `iso3 = countrycode(Country, "country.name", "iso3c")`.
Caused by warning:
! Some values were not matched unambiguously: Asia-Pacific Economic Cooperation, Association of South East Asian Nations, Data extracted on 04 Mar 2024 02:55 UTC (GMT) from OECD.Stat, East and Southeastern Asia, Eastern Asia, EU28 excluding EU15, Euro area (19 countries), Europe, European Union (15 countries), European Union (27 countries), European Union (28 countries), Group of Twenty, Non-OECD economies and aggregates, North America, OECD member countries, Other regions, Rest of the World, South and Central America
# A tibble: 660 × 8
iso3 Country scope sector Gas Unit year emission_value
<chr> <chr> <chr> <chr> <chr> <chr> <chr> <dbl>
1 AUS Australia Scope 1 Exports Emissions CO2 MtCO₂e 2009 53.8
2 AUS Australia Scope 1 Exports Emissions CO2 MtCO₂e 2010 50.3
3 AUS Australia Scope 1 Exports Emissions CO2 MtCO₂e 2011 53.2
4 AUS Australia Scope 1 Exports Emissions CO2 MtCO₂e 2012 52.2
5 AUS Australia Scope 1 Exports Emissions CO2 MtCO₂e 2013 48.4
6 AUS Australia Scope 1 Exports Emissions CO2 MtCO₂e 2014 49.4
7 AUS Australia Scope 1 Exports Emissions CO2 MtCO₂e 2015 42.8
8 AUS Australia Scope 1 Exports Emissions CO2 MtCO₂e 2016 39.2
9 AUS Australia Scope 1 Exports Emissions CO2 MtCO₂e 2017 42.7
10 AUS Australia Scope 1 Exports Emissions CO2 MtCO₂e 2018 45.7
# ℹ 650 more rows
Scope 2:
The data I have collected here is from OCED and the data describes total CO2 emissions about Electricity, gas, steam, and air conditioning supply.
emission_2 <-read_excel("~/SPR24_SUSFIN/Grid-supplied electricity, steam and cooling imports.xlsx")emission_2
Warning: There was 1 warning in `mutate()`.
ℹ In argument: `iso3 = countrycode(Country, "country.name", "iso3c")`.
Caused by warning:
! Some values were not matched unambiguously: Asia-Pacific Economic Cooperation, Association of South East Asian Nations, Data extracted on 04 Mar 2024 02:49 UTC (GMT) from OECD.Stat, East and Southeastern Asia, Eastern Asia, EU28 excluding EU15, Euro area (19 countries), Europe, European Union (15 countries), European Union (27 countries), European Union (28 countries), Group of Twenty, Non-OECD economies and aggregates, North America, OECD member countries, Other regions, Rest of the World, South and Central America, World
# A tibble: 660 × 8
iso3 Country scope sector Gas Unit year emission_value
<chr> <chr> <chr> <chr> <chr> <chr> <chr> <dbl>
1 AUS Australia Scope 2 Import Emissions CO2 MtCO₂e 2009 187.
2 AUS Australia Scope 2 Import Emissions CO2 MtCO₂e 2010 182.
3 AUS Australia Scope 2 Import Emissions CO2 MtCO₂e 2011 171.
4 AUS Australia Scope 2 Import Emissions CO2 MtCO₂e 2012 171.
5 AUS Australia Scope 2 Import Emissions CO2 MtCO₂e 2013 165.
6 AUS Australia Scope 2 Import Emissions CO2 MtCO₂e 2014 149.
7 AUS Australia Scope 2 Import Emissions CO2 MtCO₂e 2015 156.
8 AUS Australia Scope 2 Import Emissions CO2 MtCO₂e 2016 162.
9 AUS Australia Scope 2 Import Emissions CO2 MtCO₂e 2017 156.
10 AUS Australia Scope 2 Import Emissions CO2 MtCO₂e 2018 152.
# ℹ 650 more rows
Scope 3:
The data I have collected here is from OCED and the data describes the total service industry.
Warning: There was 1 warning in `mutate()`.
ℹ In argument: `iso3 = countrycode(Country, "country.name", "iso3c")`.
Caused by warning:
! Some values were not matched unambiguously: Asia-Pacific Economic Cooperation, Association of South East Asian Nations, Data extracted on 04 Mar 2024 03:51 UTC (GMT) from OECD.Stat, Eastern Asia, EU28 excluding EU15, Euro area (19 countries), European Union (15 countries), European Union (27 countries), European Union (28 countries), Group of Twenty, Non-OECD economies and aggregates, OECD member countries, Rest of the World
# A tibble: 660 × 8
iso3 Country scope sector Gas Unit year emission_value
<chr> <chr> <chr> <chr> <chr> <chr> <chr> <dbl>
1 AUS Australia Scope 3 Non-Energy Emissio… CO2 MtCO… 2009 28.6
2 AUS Australia Scope 3 Non-Energy Emissio… CO2 MtCO… 2010 29.2
3 AUS Australia Scope 3 Non-Energy Emissio… CO2 MtCO… 2011 35.8
4 AUS Australia Scope 3 Non-Energy Emissio… CO2 MtCO… 2012 39.8
5 AUS Australia Scope 3 Non-Energy Emissio… CO2 MtCO… 2013 39.5
6 AUS Australia Scope 3 Non-Energy Emissio… CO2 MtCO… 2014 34.6
7 AUS Australia Scope 3 Non-Energy Emissio… CO2 MtCO… 2015 31.4
8 AUS Australia Scope 3 Non-Energy Emissio… CO2 MtCO… 2016 29.8
9 AUS Australia Scope 3 Non-Energy Emissio… CO2 MtCO… 2017 30.3
10 AUS Australia Scope 3 Non-Energy Emissio… CO2 MtCO… 2018 30.2
# ℹ 650 more rows
# A tibble: 2,924 × 8
iso3 Country scope sector Gas Unit year emission_value
<chr> <chr> <chr> <chr> <chr> <chr> <chr> <dbl>
1 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2011 6116.
2 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2012 5885.
3 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2013 6092.
4 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2014 6130.
5 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2015 6066.
6 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2016 5763.
7 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2017 5788.
8 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2018 5990.
9 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2019 5914.
10 USA United States Scope 1 Domestic Emissi… Aggr… MtCO… 2020 5250.
# ℹ 2,914 more rows
The echo: false option disables the printing of code (only output is displayed).