knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
These tools implement in R a fundamental part of the software PACTA (Paris Agreement Capital Transition Assessment), which is a free tool that calculates the alignment between financial portfolios and climate scenarios (https://2degrees-investing.org/). Financial institutions use PACTA to study how their capital allocation impacts the climate. This package matches data from financial portfolios to asset level data from market-intelligence databases (e.g. power plant capacities, emission factors, etc.). This is the first step to assess if a financial portfolio aligns with climate goals.
Install the released version of r2dii.match from CRAN with:
# install.packages("r2dii.match")
Or install the development version of r2dii.match from GitHub with:
# install.packages("devtools") devtools::install_github("2DegreesInvesting/r2dii.match")
library(r2dii.data) library(r2dii.match)
Matching is achieved in two main steps:
match_name()
will extract all unique counterparty names from the columns: direct_loantaker
, ultimate_parent
or intermediate_parent*
and run fuzzy matching against all company names in the abcd
:
match_result <- match_name(loanbook_demo, abcd_demo) match_result
The user should then manually validate the output of [match_name()], ensuring that the value of the column score
is equal to 1
for perfect matches only.
Once validated, the prioritize()
function, will choose only the valid matches, prioritizing (by default) direct_loantaker
matches over ultimate_parent
matches:
prioritize(match_result)
The result is a dataset with identical columns to the input loanbook, and added columns bridging all matched loans to their abcd counterpart.
download.file("http://bit.ly/banks-thanks", thanks <- tempfile())
This project has received funding from the European Union LIFE program and the International Climate Initiative (IKI). The Federal Ministry for the Environment, Nature Conservation and Nuclear Safety (BMU) supports this initiative on the basis of a decision adopted by the German Bundestag. The views expressed are the sole responsibility of the authors and do not necessarily reflect the views of the funders. The funders are not responsible for any use that may be made of the information it contains.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.