ABCD

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(pacta.loanbook)

plot_table <- function(dataset_name) {
  table <- data_dictionary
  table <- dplyr::filter(table, .data[["dataset"]] == dataset_name)
  table <- dplyr::arrange(table, match(column, names(get(dataset_name))))
  table_plot <- gt::gt(dplyr::select(table, -"dataset"))

  table_plot <- 
    gt::cols_width(
      .data = table_plot,
      column ~ gt::px(150),
      typeof ~ gt::px(90)
    )

  table_plot <-
    gt::tab_style(
      data = table_plot,
      style = gt::cell_text(size = "smaller"),
      locations = gt::cells_body(columns = 1:2)
    )

  table_plot <-
    gt::tab_options(
      data = table_plot,
      ihtml.active = TRUE,
      ihtml.use_pagination = FALSE,
      ihtml.use_sorting = TRUE,
      ihtml.use_highlight = TRUE
    )

  gt::fmt_passthrough(table_plot)
}

ABCD dataset

An asset-based company dataset (ABCD) about physical assets (e.g. a wind turbine power plant, or a steel mill), aggregated to company-level. These data are used to assess the climate alignment of financial portfolios with climate transition pathways. It is usually based on data from market-intelligence databases.

plot_table("abcd_demo")

The {pacta.loanbook} package provides an example abcd dataset abcd_demo.

abcd_demo


Try the pacta.loanbook package in your browser

Any scripts or data that you put into this service are public.

pacta.loanbook documentation built on April 3, 2025, 10:37 p.m.