Open Sustainable Technology
A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.
Browse accepted projects | Review proposed projects | Propose new project | Open Issues
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
climate-change
Last synced: about 13 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 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-02T13:47:24.000Z (9 days ago)
- Last Synced: 2024-05-08T06:04:01.170Z (4 days ago)
- Topics: climate-change
- Language: R
- Homepage: https://rmi-pacta.github.io/r2dii.match
- Size: 15.7 MB
- Stars: 6
- Watchers: 5
- Forks: 7
- Open Issues: 8
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
- Codeowners: .github/CODEOWNERS
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# r2dii.match
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![CRAN status](https://www.r-pkg.org/badges/version/r2dii.match)](https://CRAN.R-project.org/package=r2dii.match)
[![](https://cranlogs.r-pkg.org/badges/grand-total/r2dii.match)](https://CRAN.R-project.org/package=r2dii.match)
[![Codecov test coverage](https://codecov.io/gh/RMI-PACTA/r2dii.match/branch/main/graph/badge.svg)](https://app.codecov.io/gh/RMI-PACTA/r2dii.match?branch=main)
[![R-CMD-check](https://github.com/RMI-PACTA/r2dii.match/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/RMI-PACTA/r2dii.match/actions/workflows/R-CMD-check.yaml)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}
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: 42
- Release event: 3
- Issues event: 38
- Watch event: 2
- Delete event: 44
- Member event: 2
- Issue comment event: 68
- Push event: 166
- Pull request review event: 85
- Pull request review comment event: 22
- Pull request event: 82
- Fork event: 2
Last Year
- Create event: 36
- Delete event: 39
- Fork event: 1
- Issue comment event: 65
- Issues event: 29
- Member event: 2
- Pull request event: 69
- Pull request review comment event: 20
- Pull request review event: 73
- Push event: 147
- Release event: 2
Committers metadata
Last synced: 2 days ago
Total Commits: 510
Total Committers: 11
Avg Commits per committer: 46.364
Development Distribution Score (DDS): 0.208
Commits in past year: 55
Committers in past year: 6
Avg Commits per committer in past year: 9.167
Development Distribution Score (DDS) in past year: 0.436
Name | Commits | |
---|---|---|
Mauro Lepore | m****e@g****m | 404 |
Jackson Hoffart | j****t@g****m | 76 |
Alex Axthelm | a****m@R****g | 16 |
dependabot[bot] | 4****] | 4 |
GitHub Actions | a****s@g****m | 3 |
CJ Yetman | c****n@r****g | 2 |
Alex Axthelm | a****m@r****g | 1 |
Jackson Hoffart | j****n@2****g | 1 |
2diiKlaus | 3****s | 1 |
Hadley Wickham | h****m@g****m | 1 |
Jacob Kastl | 6****k | 1 |
Committer domains:
- rmi.org: 3
- 2degrees-investing.org: 1
- github.com: 1
Issue and Pull Request metadata
Last synced: 1 day ago
Total issues: 51
Total pull requests: 109
Average time to close issues: 8 months
Average time to close pull requests: 5 days
Total issue authors: 8
Total pull request authors: 7
Average comments per issue: 2.04
Average comments per pull request: 0.69
Merged pull request: 102
Bot issues: 0
Bot pull requests: 5
Past year issues: 14
Past year pull requests: 43
Past year average time to close issues: about 1 month
Past year average time to close pull requests: 3 days
Past year issue authors: 3
Past year pull request authors: 5
Past year average comments per issue: 1.57
Past year average comments per pull request: 0.93
Past year merged pull request: 42
Past year bot issues: 0
Past year bot pull requests: 5
Top Issue Authors
- jdhoffa (29)
- maurolepore (14)
- georgeharris2deg (2)
- vintented (2)
- AlexAxthelm (1)
- FrederickFa (1)
- hadley (1)
- jacobvjk (1)
Top Pull Request Authors
- jdhoffa (56)
- maurolepore (40)
- dependabot[bot] (5)
- AlexAxthelm (3)
- cjyetman (2)
- jacobvjk (2)
- hadley (1)
Top Issue Labels
- feature (11)
- ADO (10)
- bug (9)
- upkeep (5)
- medium (4)
- priority (3)
- documentation (3)
- small (2)
- breaking change :skull_and_crossbones: (2)
- maintenance-day :nerd_face: (1)
Top Pull Request Labels
- upkeep (9)
- dependencies (5)
- bug (1)
- feature (1)
Package metadata
- Total packages: 1
-
Total downloads:
- cran: 512 last-month
- Total dependent packages: 2
- Total dependent repositories: 4
- Total versions: 16
- 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.2.0 (published about 2 months ago)
- Last Synced: 2024-05-10T09:01:52.985Z (1 day ago)
- Versions: 16
- Dependent Packages: 2
- Dependent Repositories: 4
- Downloads: 512 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.288856485579517