Skip to contents

Return loan book level aggregation of company alignment metrics by exposure

Usage

aggregate_alignment_loanbook_exposure(
  data,
  matched,
  level = c("net", "bo_po"),
  .by = NULL
)

Arguments

data

data.frame. Holds output of company indicators. Contains columns "name_abcd", "sector", "activity_unit", "region", "scenario_source", "scenario", "year", "direction", "total_deviation" and "alignment_metric".

matched

data.frame. Holds matched and prioritized loan book data.

level

Character. Vector that indicates if the aggregate alignment metric should be returned based on the net technology deviations (net) or disaggregated into buildout and phaseout technologies (bo_po).

.by

Character. Optionally, a selection of columns to group by. All columns indicated must be available variables in the matched data set. The intended use case is to allow analyzing the loan books by additional traits of interest, such as types of financial institutions. Default is NULL, which means the aggregation is done at the meta level. It is not possible to group by the critical columns of the data and matched inputs.