diff --git a/README.md b/README.md index a61c371d..939f9af7 100644 --- a/README.md +++ b/README.md @@ -57,20 +57,7 @@ matched %>% co2_intensity_scenario = co2_intensity_scenario_demo ) #> Warning: Removing ald rows where `emission_factor` is NA -#> # A tibble: 508 x 4 -#> sector year emission_factor_metric emission_factor_value -#> -#> 1 automotive 2002 projected 0.228 -#> 2 automotive 2003 projected 0.226 -#> 3 automotive 2004 projected 0.224 -#> 4 automotive 2005 projected 0.222 -#> 5 automotive 2006 projected 0.220 -#> 6 automotive 2007 projected 0.218 -#> 7 automotive 2008 projected 0.216 -#> 8 automotive 2009 projected 0.214 -#> 9 automotive 2010 projected 0.212 -#> 10 automotive 2011 projected 0.210 -#> # … with 498 more rows +#> ``` - Use `target_market_share` to calculate market-share scenario targets at the portfolio level: @@ -82,20 +69,7 @@ matched %>% scenario = scenario_demo_2020, region_isos = region_isos_demo ) -#> # A tibble: 3,479 x 8 -#> sector technology year region scenario_source metric production -#> -#> 1 autom… electric 2020 global demo_2020 proje… 145942. -#> 2 autom… electric 2020 global demo_2020 targe… 145942. -#> 3 autom… electric 2020 global demo_2020 targe… 145942. -#> 4 autom… electric 2020 global demo_2020 targe… 145942. -#> 5 autom… electric 2021 global demo_2020 proje… 148212. -#> 6 autom… electric 2021 global demo_2020 targe… 148361. -#> 7 autom… electric 2021 global demo_2020 targe… 160625. -#> 8 autom… electric 2021 global demo_2020 targe… 149016. -#> 9 autom… electric 2022 global demo_2020 proje… 150481. -#> 10 autom… electric 2022 global demo_2020 targe… 150730. -#> # … with 3,469 more rows, and 1 more variable: technology_share +#> ``` - Or at the company level: @@ -112,20 +86,7 @@ matched %>% #> This will result in company-level results, weighted by the portfolio #> loan size, which is rarely useful. Did you mean to set one of these #> arguments to `FALSE`? -#> # A tibble: 15,299 x 9 -#> sector technology year region scenario_source name_ald metric production -#> -#> 1 autom… electric 2020 global demo_2020 shangha… proje… 5140. -#> 2 autom… electric 2020 global demo_2020 shangha… targe… 5140. -#> 3 autom… electric 2020 global demo_2020 shangha… targe… 5140. -#> 4 autom… electric 2020 global demo_2020 shangha… targe… 5140. -#> 5 autom… electric 2020 global demo_2020 sichuan… proje… 2992. -#> 6 autom… electric 2020 global demo_2020 sichuan… targe… 2992. -#> 7 autom… electric 2020 global demo_2020 sichuan… targe… 2992. -#> 8 autom… electric 2020 global demo_2020 sichuan… targe… 2992. -#> 9 autom… electric 2020 global demo_2020 singula… proje… 8674. -#> 10 autom… electric 2020 global demo_2020 singula… targe… 8674. -#> # … with 15,289 more rows, and 1 more variable: technology_share +#> ``` ### Utility Functions @@ -149,39 +110,12 @@ loanbook_joined_to_ald_scenario <- matched %>% # portfolio level loanbook_joined_to_ald_scenario %>% summarize_weighted_production(scenario, tmsr, smsp, region) -#> # A tibble: 702 x 9 -#> sector_ald technology year scenario tmsr smsp region weighted_produc… -#> -#> 1 automotive electric 2020 cps 1 0 global 145942. -#> 2 automotive electric 2020 sds 1 0 global 145942. -#> 3 automotive electric 2020 sps 1 0 global 145942. -#> 4 automotive electric 2021 cps 1.12 0.00108 global 148212. -#> 5 automotive electric 2021 sds 1.16 0.00653 global 148212. -#> 6 automotive electric 2021 sps 1.14 0.00137 global 148212. -#> 7 automotive electric 2022 cps 1.24 0.00213 global 150481. -#> 8 automotive electric 2022 sds 1.32 0.0131 global 150481. -#> 9 automotive electric 2022 sps 1.29 0.00273 global 150481. -#> 10 automotive electric 2023 cps 1.35 0.00316 global 152751. -#> # … with 692 more rows, and 1 more variable: weighted_technology_share +#> # company level loanbook_joined_to_ald_scenario %>% summarize_weighted_production(scenario, tmsr, smsp, region, name_ald) -#> # A tibble: 9,567 x 10 -#> sector_ald technology year scenario tmsr smsp region name_ald -#> -#> 1 automotive electric 2020 cps 1 0 global shangha… -#> 2 automotive electric 2020 cps 1 0 global sichuan… -#> 3 automotive electric 2020 cps 1 0 global singula… -#> 4 automotive electric 2020 cps 1 0 global south-e… -#> 5 automotive electric 2020 cps 1 0 global suzuki … -#> 6 automotive electric 2020 cps 1 0 global tata gr… -#> 7 automotive electric 2020 cps 1 0 global tesla i… -#> 8 automotive electric 2020 cps 1 0 global toyota … -#> 9 automotive electric 2020 cps 1 0 global volkswa… -#> 10 automotive electric 2020 cps 1 0 global wheego -#> # … with 9,557 more rows, and 2 more variables: weighted_production , -#> # weighted_technology_share +#> ``` [Get started](https://2degreesinvesting.github.io/r2dii.analysis/articles/r2dii-analysis.html). diff --git a/revdep/README.md b/revdep/README.md index a8c98a07..40b0fca9 100644 --- a/revdep/README.md +++ b/revdep/README.md @@ -1,22 +1,22 @@ # Platform -|field |value | -|:--------|:----------------------------| -|version |R version 4.0.3 (2020-10-10) | -|os |Ubuntu 18.04.5 LTS | -|system |x86_64, linux-gnu | -|ui |X11 | -|language |en_US:en | -|collate |en_US.UTF-8 | -|ctype |en_US.UTF-8 | -|tz |America/Monterrey | -|date |2020-12-04 | +|field |value | +|:--------|:------------------------------| +|version |R version 4.0.3 (2020-10-10) | +|os |Ubuntu 18.04.5 LTS | +|system |x86_64, linux-gnu | +|ui |X11 | +|language |en_US:en | +|collate |en_US.UTF-8 | +|ctype |en_US.UTF-8 | +|tz |America/Argentina/Buenos_Aires | +|date |2020-12-15 | # Dependencies |package |old |new |Δ | |:--------------|:------|:----------|:--| -|r2dii.analysis |0.1.1 |0.1.1.9000 |* | +|r2dii.analysis |0.1.2 |0.1.2.9000 |* | |assertthat |0.2.1 |0.2.1 | | |cli |2.2.0 |2.2.0 | | |cpp11 |0.2.4 |0.2.4 | | @@ -32,7 +32,7 @@ |pillar |1.4.7 |1.4.7 | | |pkgconfig |2.0.3 |2.0.3 | | |purrr |0.3.4 |0.3.4 | | -|r2dii.data |0.1.4 |0.1.4 | | +|r2dii.data |0.1.6 |0.1.6 | | |R6 |2.5.0 |2.5.0 | | |rlang |0.4.9 |0.4.9 | | |tibble |3.0.4 |3.0.4 | | @@ -40,7 +40,7 @@ |tidyselect |1.1.0 |1.1.0 | | |utf8 |1.1.4 |1.1.4 | | |vctrs |0.3.5 |0.3.5 | | -|zoo |NA |1.8-8 |* | +|zoo |1.8-8 |1.8-8 | | # Revdeps