diff --git a/dev/apple-touch-icon-120x120.png b/dev/apple-touch-icon-120x120.png index 44545f83..d89321a0 100644 Binary files a/dev/apple-touch-icon-120x120.png and b/dev/apple-touch-icon-120x120.png differ diff --git a/dev/apple-touch-icon-152x152.png b/dev/apple-touch-icon-152x152.png index a52596d5..81d8afd5 100644 Binary files a/dev/apple-touch-icon-152x152.png and b/dev/apple-touch-icon-152x152.png differ diff --git a/dev/apple-touch-icon-180x180.png b/dev/apple-touch-icon-180x180.png index 1c254cb1..c8f97cce 100644 Binary files a/dev/apple-touch-icon-180x180.png and b/dev/apple-touch-icon-180x180.png differ diff --git a/dev/apple-touch-icon-60x60.png b/dev/apple-touch-icon-60x60.png index 04faebff..fd33cd1e 100644 Binary files a/dev/apple-touch-icon-60x60.png and b/dev/apple-touch-icon-60x60.png differ diff --git a/dev/apple-touch-icon-76x76.png b/dev/apple-touch-icon-76x76.png index 8f9cb50b..04b3582c 100644 Binary files a/dev/apple-touch-icon-76x76.png and b/dev/apple-touch-icon-76x76.png differ diff --git a/dev/apple-touch-icon.png b/dev/apple-touch-icon.png index 75d5f03f..d50a5a29 100644 Binary files a/dev/apple-touch-icon.png and b/dev/apple-touch-icon.png differ diff --git a/dev/articles/r2dii-analysis_files/figure-html/trajetory-portfolio-1.png b/dev/articles/r2dii-analysis_files/figure-html/trajetory-portfolio-1.png index 703dd4e5..81f8d716 100644 Binary files a/dev/articles/r2dii-analysis_files/figure-html/trajetory-portfolio-1.png and b/dev/articles/r2dii-analysis_files/figure-html/trajetory-portfolio-1.png differ diff --git a/dev/favicon-16x16.png b/dev/favicon-16x16.png index f67054f2..ee45b54e 100644 Binary files a/dev/favicon-16x16.png and b/dev/favicon-16x16.png differ diff --git a/dev/favicon-32x32.png b/dev/favicon-32x32.png index 0b789268..97fe0162 100644 Binary files a/dev/favicon-32x32.png and b/dev/favicon-32x32.png differ diff --git a/dev/pkgdown.yml b/dev/pkgdown.yml index 71c052bd..8f2bd0f7 100644 --- a/dev/pkgdown.yml +++ b/dev/pkgdown.yml @@ -6,7 +6,7 @@ articles: r2dii-analysis: r2dii-analysis.html target-market-share: target-market-share.html target-sda: target-sda.html -last_built: 2024-01-31T15:31Z +last_built: 2024-02-01T10:51Z urls: reference: https://rmi-pacta.github.io/r2dii.analysis/reference article: https://rmi-pacta.github.io/r2dii.analysis/articles diff --git a/dev/reference/join_abcd_scenario.html b/dev/reference/join_abcd_scenario.html index a8eee1a2..98d6f548 100644 --- a/dev/reference/join_abcd_scenario.html +++ b/dev/reference/join_abcd_scenario.html @@ -130,49 +130,6 @@
installed <- requireNamespace("r2dii.data", quietly = TRUE) &&
- requireNamespace("r2dii.match", versionCheck = "0.1.0", quietly = TRUE) &&
- packageVersion("r2dii.match") >= "0.1.0"
-
-if (installed) {
- library(r2dii.data)
- library(r2dii.match)
-
- valid_matches <- match_name(loanbook_demo, abcd_demo) %>%
- # WARNING: Remember to validate matches (see `?prioritize`)
- prioritize()
-
- valid_matches %>%
- join_abcd_scenario(
- abcd = abcd_demo,
- scenario = scenario_demo_2020,
- region_isos = region_isos_demo
- )
-}
-#> # A tibble: 4,287 × 45
-#> id_loan id_direct_loantaker name_direct_loantaker id_intermediate_parent_1
-#> <chr> <chr> <chr> <chr>
-#> 1 L6 C304 Kassulke-Kassulke NA
-#> 2 L6 C304 Kassulke-Kassulke NA
-#> 3 L6 C304 Kassulke-Kassulke NA
-#> 4 L6 C304 Kassulke-Kassulke NA
-#> 5 L6 C304 Kassulke-Kassulke NA
-#> 6 L6 C304 Kassulke-Kassulke NA
-#> 7 L6 C304 Kassulke-Kassulke NA
-#> 8 L6 C304 Kassulke-Kassulke NA
-#> 9 L6 C304 Kassulke-Kassulke NA
-#> 10 L6 C304 Kassulke-Kassulke NA
-#> # ℹ 4,277 more rows
-#> # ℹ 41 more variables: name_intermediate_parent_1 <chr>,
-#> # id_ultimate_parent <chr>, name_ultimate_parent <chr>,
-#> # loan_size_outstanding <dbl>, loan_size_outstanding_currency <chr>,
-#> # loan_size_credit_limit <dbl>, loan_size_credit_limit_currency <chr>,
-#> # sector_classification_system <chr>, sector_classification_input_type <chr>,
-#> # sector_classification_direct_loantaker <dbl>, fi_type <chr>, …
-
if (FALSE) {
-installed <- requireNamespace("r2dii.data", quietly = TRUE) &&
- requireNamespace("r2dii.match", quietly = TRUE) &&
- packageVersion("r2dii.match") >= "0.1.0"
-
-if (installed) {
- library(r2dii.data)
- library(r2dii.match)
-
- loanbook <- head(loanbook_demo, 150)
- abcd <- head(abcd_demo, 100)
- master <- loanbook %>%
- match_name(abcd) %>%
- prioritize() %>%
- join_abcd_scenario(
- abcd = abcd,
- scenario = scenario_demo_2020,
- region_isos = region_isos_demo
- ) %>%
- dplyr::filter(production != 0)
-
- summarize_weighted_production(master)
-
- summarize_weighted_production(master, use_credit_limit = TRUE)
-
- summarize_weighted_percent_change(master)
-
- summarize_weighted_percent_change(master, use_credit_limit = TRUE)
-}
-}
-
if (FALSE) {
-installed <- requireNamespace("r2dii.data", quietly = TRUE) &&
- requireNamespace("r2dii.match", quietly = TRUE) &&
- packageVersion("r2dii.match") >= "0.1.0"
-
-if (installed) {
- library(r2dii.data)
- library(r2dii.match)
-
- loanbook <- head(loanbook_demo, 100)
- abcd <- head(abcd_demo, 100)
-
- matched <- loanbook %>%
- match_name(abcd) %>%
- prioritize()
-
- # Calculate targets at portfolio level
- matched %>%
- target_market_share(
- abcd = abcd,
- scenario = scenario_demo_2020,
- region_isos = region_isos_demo
- )
-
- # Calculate targets at company level
- matched %>%
- target_market_share(
- abcd = abcd,
- scenario = scenario_demo_2020,
- region_isos = region_isos_demo,
- by_company = TRUE
- )
-
- matched %>%
- target_market_share(
- abcd = abcd,
- scenario = scenario_demo_2020,
- region_isos = region_isos_demo,
- # Calculate unweighted targets
- weight_production = FALSE
- )
-}
-}
-
if (FALSE) {
-installed <- requireNamespace("r2dii.match", quietly = TRUE) &&
- requireNamespace("r2dii.data", quietly = TRUE) &&
- packageVersion("r2dii.match") >= "0.1.0"
-
-if (installed) {
- library(r2dii.match)
- library(r2dii.data)
-
- loanbook <- head(loanbook_demo, 150)
- abcd <- head(abcd_demo, 100)
-
- matched <- loanbook %>%
- match_name(abcd) %>%
- prioritize()
-
- # Calculate targets at portfolio level
- matched %>%
- target_sda(
- abcd = abcd,
- co2_intensity_scenario = co2_intensity_scenario_demo,
- region_isos = region_isos_demo
- )
-
- # Calculate targets at company level
- matched %>%
- target_sda(
- abcd = abcd,
- co2_intensity_scenario = co2_intensity_scenario_demo,
- region_isos = region_isos_demo,
- by_company = TRUE
- )
-}
-}
-