calculate_tables: Calculate Canonical In-Memory Tables

View source: R/api.R

calculate_tablesR Documentation

Calculate Canonical In-Memory Tables

Description

Validates and calculates canonical tables without producing spreadsheet output. A parallel fully-loaded result is calculated from the same snapshot.

Usage

calculate_tables(
  tables,
  run_id = NULL,
  project_root = NULL,
  parameter_overrides = NULL,
  override_reason = NULL,
  override_approved_by = NULL
)

Arguments

tables

Named list of canonical data frames.

run_id

Optional caller-defined run identifier.

project_root

Optional root used to resolve local source documents.

parameter_overrides

Optional data frame of controlled parameter overrides prepared as described in override_regulatory_parameters().

override_reason, override_approved_by

Required non-empty governance information when parameter_overrides is supplied.

Details

The return includes applied and fully-loaded result tables. All calculations use one official bitemporal snapshot. The function does not write files and does not change the global random-number stream.

Value

An rwa_calculation_result object.

See Also

generate_synthetic_tables(), calculate_dataset()

Examples


tables <- generate_synthetic_tables(bank_profile = "KSA_BANK")
result <- calculate_tables(tables)
result$metrics[c("RWEA_KSA", "TREA")]


riskweightedassets documentation built on Sept. 24, 2026, 5:12 p.m.