r2dii.match
Tools to Match Financial Portfolios with Climate Data
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (17.7%) to scientific vocabulary
Keywords
climate-change
Keywords from Contributors
dynamic
standardization
genomics
ecology
color-palette
zsh-plugin
archiving
autograding
interpretability
projection
Last synced: 10 months ago
·
JSON representation
Repository
Tools to Match Financial Portfolios with Climate Data
Basic Info
- Host: GitHub
- Owner: RMI-PACTA
- License: other
- Language: R
- Default Branch: main
- Homepage: https://rmi-pacta.github.io/r2dii.match
- Size: 17 MB
Statistics
- Stars: 7
- Watchers: 4
- Forks: 5
- Open Issues: 12
- Releases: 20
Topics
climate-change
Created almost 7 years ago
· Last pushed 11 months ago
Metadata Files
Readme
Changelog
License
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
- Name: RMI-PACTA
- Login: RMI-PACTA
- Kind: organization
- Repositories: 31
- Profile: https://github.com/RMI-PACTA
GitHub Events
Total
- Create event: 19
- Release event: 3
- Issues event: 15
- Delete event: 21
- Issue comment event: 21
- Push event: 88
- Pull request review comment event: 16
- Pull request review event: 51
- Pull request event: 37
Last Year
- Create event: 19
- Release event: 3
- Issues event: 15
- Delete event: 21
- Issue comment event: 21
- Push event: 88
- Pull request review comment event: 16
- Pull request review event: 51
- Pull request event: 37
Committers
Last synced: 11 months ago
Top Committers
| 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 | 22 |
| 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 (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 65
- Total pull requests: 224
- 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.74
- Average comments per pull request: 0.61
- Merged pull requests: 203
- Bot issues: 0
- Bot pull requests: 14
Past Year
- Issues: 9
- Pull requests: 50
- Average time to close issues: 3 days
- Average time to close pull requests: 5 days
- Issue authors: 2
- Pull request authors: 4
- Average comments per issue: 0.11
- Average comments per pull request: 0.38
- Merged pull requests: 42
- Bot issues: 0
- Bot pull requests: 2
Top Authors
Issue Authors
- jdhoffa (28)
- maurolepore (14)
- jacobvjk (8)
- cjyetman (7)
- AlexAxthelm (2)
- vintented (2)
- georgeharris2deg (2)
- FrederickFa (1)
- hadley (1)
Pull Request Authors
- jdhoffa (79)
- cjyetman (49)
- maurolepore (40)
- AlexAxthelm (21)
- jacobvjk (20)
- dependabot[bot] (14)
- hadley (1)
Top Labels
Issue Labels
feature (10)
ADO (10)
bug (9)
upkeep (6)
priority (4)
medium (4)
maintenance-day :nerd_face: (2)
breaking change :skull_and_crossbones: (2)
documentation (2)
small (2)
Pull Request Labels
upkeep (14)
dependencies (14)
feature (2)
priority (2)
bug (1)
Packages
- Total packages: 1
-
Total downloads:
- cran 531 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
- License: MIT + file LICENSE
-
Latest release: 0.4.1
published about 1 year ago
Rankings
Forks count: 9.7%
Dependent packages count: 13.2%
Dependent repos count: 14.8%
Average: 15.8%
Downloads: 20.5%
Stargazers count: 20.7%
Maintainers (1)
Last synced:
10 months ago
Dependencies
DESCRIPTION
cran
- 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
.github/workflows/R-CMD-check.yaml
actions
- 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
.github/workflows/R-CMD-check_r2dii-devel.yaml
actions
- 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
.github/workflows/pkgdown.yaml
actions
- 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
.github/workflows/pr-commands.yaml
actions
- 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
.github/workflows/render-readme.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v1 composite
.github/workflows/test-coverage.yaml
actions
- actions/checkout v3 composite
- actions/upload-artifact v3 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite