{"id":32207587,"url":"https://github.com/rmi-pacta/r2dii.analysis","last_synced_at":"2025-10-22T05:55:33.647Z","repository":{"id":40298534,"uuid":"210645990","full_name":"RMI-PACTA/r2dii.analysis","owner":"RMI-PACTA","description":"Tools to Calculate Climate Targets for Financial Portfolios","archived":false,"fork":false,"pushed_at":"2025-08-18T21:25:50.000Z","size":21839,"stargazers_count":12,"open_issues_count":17,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-22T05:55:16.939Z","etag":null,"topics":["climate-change"],"latest_commit_sha":null,"homepage":"https://rmi-pacta.github.io/r2dii.analysis","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RMI-PACTA.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-09-24T16:13:08.000Z","updated_at":"2025-10-06T09:28:57.000Z","dependencies_parsed_at":"2023-10-23T12:38:37.398Z","dependency_job_id":"cb3084b0-ab9d-43dd-8dc7-a677f606164a","html_url":"https://github.com/RMI-PACTA/r2dii.analysis","commit_stats":{"total_commits":439,"total_committers":11,"mean_commits":39.90909090909091,"dds":0.4829157175398633,"last_synced_commit":"7673d3f0ab73147fdb0830ab9b923293d912d781"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/RMI-PACTA/r2dii.analysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RMI-PACTA%2Fr2dii.analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RMI-PACTA%2Fr2dii.analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RMI-PACTA%2Fr2dii.analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RMI-PACTA%2Fr2dii.analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RMI-PACTA","download_url":"https://codeload.github.com/RMI-PACTA/r2dii.analysis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RMI-PACTA%2Fr2dii.analysis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280389299,"owners_count":26322507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["climate-change"],"created_at":"2025-10-22T05:55:27.963Z","updated_at":"2025-10-22T05:55:33.635Z","avatar_url":"https://github.com/RMI-PACTA.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document \n---\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# r2dii.analysis \u003cimg src=\"man/figures/logo.png\" align=\"right\" width=\"120\" /\u003e\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)\n[![CRAN status](https://www.r-pkg.org/badges/version/r2dii.analysis)](https://CRAN.R-project.org/package=r2dii.analysis)\n[![Codecov test coverage](https://codecov.io/gh/RMI-PACTA/r2dii.analysis/branch/main/graph/badge.svg)](https://app.codecov.io/gh/RMI-PACTA/r2dii.analysis?branch=main)\n[![R-CMD-check](https://github.com/RMI-PACTA/r2dii.analysis/actions/workflows/R.yml/badge.svg)](https://github.com/RMI-PACTA/r2dii.analysis/actions/workflows/R.yml)\n\u003c!-- badges: end --\u003e\n\nThese tools help you to assess if a financial portfolio aligns with climate\ngoals. They summarize key metrics attributed to the portfolio (e.g.\nproduction, emission factors), and calculate targets based on climate\nscenarios. They implement in R the last step of the free software 'PACTA'\n(Paris Agreement Capital Transition Assessment). Financial institutions use 'PACTA' to\nstudy how their capital allocation impacts the climate.\n\n## Installation\n\nInstall the released version of r2dii.analysis from CRAN with:\n\n```r\ninstall.packages(\"r2dii.analysis\")\n```\n\nOr install the development version of r2dii.analysis from GitHub with:\n\n```r\n# install.packages(\"pak\")\npak::pak(\"RMI-PACTA/r2dii.analysis\")\n```\n\n## Example\n\n* Use `library()` to attach the packages you need. r2dii.analysis does not depend on the packages r2dii.data and r2dii.match; but we suggest you install them -- with `install.packages(c(\"r2dii.data\", \"r2dii.match\"))` -- so you can reproduce our examples.\n\n```{r, message=FALSE}\nlibrary(r2dii.data)\nlibrary(r2dii.match)\nlibrary(r2dii.analysis)\n```\n\n* Use `r2dii.match::match_name()` to identify matches between your loanbook and the asset level data.\n\n```{r}\nmatched \u003c- match_name(loanbook_demo, abcd_demo) %\u003e%\n  prioritize()\n```\n\n### Add Scenario Targets\n\n* Use `target_sda()` to calculate SDA targets of CO~2~ emissions.\n\n```{r}\nmatched %\u003e%\n  target_sda(\n    abcd = abcd_demo,\n    co2_intensity_scenario = co2_intensity_scenario_demo,\n    region_isos = region_isos_demo\n  )\n```\n\n* Use `target_market_share` to calculate market-share scenario targets at the portfolio level:\n\n```{r}\nmatched %\u003e%\n  target_market_share(\n    abcd = abcd_demo,\n    scenario = scenario_demo_2020,\n    region_isos = region_isos_demo\n  )\n```\n\n* Or at the company level:\n\n```{r}\nmatched %\u003e%\n  target_market_share(\n    abcd = abcd_demo,\n    scenario = scenario_demo_2020,\n    region_isos = region_isos_demo,\n    by_company = TRUE\n  )\n```\n\n[Get started](https://rmi-pacta.github.io/r2dii.analysis/articles/r2dii-analysis.html).\n\n```{r echo=FALSE}\ndownload.file(\"http://bit.ly/banks-thanks\", thanks \u003c- tempfile())\n```\n\n## Funding\n\nThis project has received funding from the [European Union LIFE\nprogram](https://wayback.archive-it.org/12090/20210412123959/https://ec.europa.eu/easme/en/) and the International Climate Initiative (IKI).\nThe Federal Ministry for the Environment, Nature Conservation and Nuclear Safety\n(BMU) supports this initiative on the basis of a decision adopted by the German\nBundestag. The views expressed are the sole responsibility of the authors and do\nnot necessarily reflect the views of the funders. The funders are not\nresponsible for any use that may be made of the information it contains.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmi-pacta%2Fr2dii.analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmi-pacta%2Fr2dii.analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmi-pacta%2Fr2dii.analysis/lists"}