r2dii.match
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://github.com/rmi-pacta/r2dii.match
Category: Sustainable Development
Sub Category: Sustainable Investment
Keywords
climate-change
Keywords from Contributors
dynamic sustainable-finance forests
Last synced: about 23 hours ago
JSON representation
Repository metadata
Tools to Match Financial Portfolios with Climate Data
- Host: GitHub
- URL: https://github.com/rmi-pacta/r2dii.match
- Owner: RMI-PACTA
- License: other
- Created: 2019-09-16T14:23:15.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-09-11T11:12:04.000Z (4 months ago)
- Last Synced: 2025-11-15T04:02:52.892Z (about 1 month ago)
- Topics: climate-change
- Language: R
- Homepage: https://rmi-pacta.github.io/r2dii.match
- Size: 17 MB
- Stars: 7
- Watchers: 3
- Forks: 5
- Open Issues: 13
- Releases: 20
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# r2dii.match
[](https://lifecycle.r-lib.org/articles/stages.html#stable)
[](https://CRAN.R-project.org/package=r2dii.match)
[](https://CRAN.R-project.org/package=r2dii.match)
[](https://app.codecov.io/gh/RMI-PACTA/r2dii.match?branch=main)
[](https://github.com/RMI-PACTA/r2dii.match/actions/workflows/R.yml)
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.
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.
## Installation
Install the released version of r2dii.match from CRAN with:
```r
# install.packages("r2dii.match")
```
Or install the development version of r2dii.match from GitHub with:
```r
# install.packages("pak")
pak::pak("RMI-PACTA/r2dii.match")
```
## Example
```{r, message=FALSE}
library(r2dii.data)
library(r2dii.match)
```
Matching is achieved in two main steps:
### 1. Run fuzzy matching
`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`:
```{r}
match_result <- match_name(loanbook_demo, abcd_demo)
match_result
```
### 2. Prioritize validated matches
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:
```{r}
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.
[Get started](https://rmi-pacta.github.io/r2dii.match/articles/r2dii-match.html).
```{r echo=FALSE}
download.file("http://bit.ly/banks-thanks", thanks <- tempfile())
```
## Funding
This project has received funding from the [European Union LIFE
program](https://wayback.archive-it.org/12090/20210412123959/https://ec.europa.eu/easme/en/) 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.
Owner metadata
- Name: RMI-PACTA
- Login: RMI-PACTA
- Email:
- Kind: organization
- Description:
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/106075608?v=4
- Repositories: 31
- Last ynced at: 2023-03-06T17:39:54.258Z
- Profile URL: https://github.com/RMI-PACTA
GitHub Events
Total
- Create event: 20
- Release event: 3
- Issues event: 15
- Delete event: 23
- Issue comment event: 21
- Push event: 88
- Pull request review comment event: 16
- Pull request review event: 52
- Pull request event: 41
Last Year
- Create event: 15
- Release event: 2
- Issues event: 12
- Delete event: 20
- Issue comment event: 15
- Push event: 75
- Pull request review comment event: 15
- Pull request event: 35
- Pull request review event: 45
Committers metadata
Last synced: 17 days ago
Total Commits: 553
Total Committers: 10
Avg Commits per committer: 55.3
Development Distribution Score (DDS): 0.269
Commits in past year: 21
Committers in past year: 4
Avg Commits per committer in past year: 5.25
Development Distribution Score (DDS) in past year: 0.286
| Name | Commits | |
|---|---|---|
| Mauro Lepore | m****e@g****m | 404 |
| Jackson Hoffart | j****t@g****m | 77 |
| CJ Yetman | c****n@r****g | 25 |
| Alex Axthelm | a****m@R****g | 23 |
| Jacob Kastl | 6****k | 11 |
| dependabot[bot] | 4****] | 7 |
| GitHub Actions | a****s@g****m | 3 |
| Hadley Wickham | h****m@g****m | 1 |
| 2diiKlaus | 3****s | 1 |
| Jackson Hoffart | j****n@2****g | 1 |
Committer domains:
- rmi.org: 2
- 2degrees-investing.org: 1
- github.com: 1
Issue and Pull Request metadata
Last synced: about 1 month ago
Total issues: 64
Total pull requests: 226
Average time to close issues: 9 months
Average time to close pull requests: 4 days
Total issue authors: 9
Total pull request authors: 7
Average comments per issue: 1.77
Average comments per pull request: 0.6
Merged pull request: 203
Bot issues: 0
Bot pull requests: 14
Past year issues: 8
Past year pull requests: 45
Past year average time to close issues: 3 days
Past year average time to close pull requests: 4 days
Past year issue authors: 2
Past year pull request authors: 4
Past year average comments per issue: 0.13
Past year average comments per pull request: 0.42
Past year merged pull request: 36
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- jdhoffa (28)
- maurolepore (14)
- jacobvjk (8)
- cjyetman (6)
- AlexAxthelm (2)
- vintented (2)
- georgeharris2deg (2)
- FrederickFa (1)
- hadley (1)
Top Pull Request Authors
- jdhoffa (79)
- cjyetman (49)
- maurolepore (40)
- AlexAxthelm (23)
- jacobvjk (20)
- dependabot[bot] (14)
- hadley (1)
Top Issue Labels
- feature (10)
- ADO (10)
- bug (9)
- upkeep (6)
- medium (4)
- priority (3)
- maintenance-day :nerd_face: (2)
- breaking change :skull_and_crossbones: (2)
- documentation (2)
- small (2)
Top Pull Request Labels
- upkeep (14)
- dependencies (14)
- feature (2)
- priority (2)
- bug (1)
Package metadata
- Total packages: 1
-
Total downloads:
- cran: 342 last-month
- Total dependent packages: 2
- Total dependent repositories: 4
- Total versions: 20
- Total maintainers: 1
cran.r-project.org: r2dii.match
Tools to Match Corporate Lending Portfolios with Climate Data
- Homepage: https://rmi-pacta.github.io/r2dii.match/
- Documentation: http://cran.r-project.org/web/packages/r2dii.match/r2dii.match.pdf
- Licenses: MIT + file LICENSE
- Latest release: 0.4.1 (published 6 months ago)
- Last Synced: 2025-12-07T15:06:51.658Z (18 days ago)
- Versions: 20
- Dependent Packages: 2
- Dependent Repositories: 4
- Downloads: 342 Last month
-
Rankings:
- Forks count: 9.733%
- Dependent packages count: 13.244%
- Dependent repos count: 14.752%
- Average: 15.788%
- Downloads: 20.523%
- Stargazers count: 20.69%
- Maintainers (1)
Dependencies
- R >= 3.4 depends
- data.table * imports
- dplyr >= 0.8.5 imports
- glue * imports
- lifecycle * imports
- magrittr * imports
- purrr * imports
- r2dii.data * imports
- rlang * imports
- stringdist * imports
- stringi * imports
- tibble * imports
- tidyr * imports
- tidyselect * imports
- utils * imports
- covr * suggests
- rmarkdown * suggests
- spelling * suggests
- testthat >= 2.1.0 suggests
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- JamesIves/github-pages-deploy-action v4.4.1 composite
- actions/checkout v3 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- actions/checkout v3 composite
- r-lib/actions/pr-fetch v2 composite
- r-lib/actions/pr-push v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v1 composite
- actions/checkout v3 composite
- actions/upload-artifact v3 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
Score: 11.153389288750464