Nothing
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
The package provides an auditable R workflow for canonical risk-weighted asset data. Start by inspecting the two bundled profiles.
library(riskweightedassets) list_reference_profiles()
Generate native R tables without writing files.
tables <- generate_synthetic_tables(bank_profile = "KSA_BANK") length(tables) names(tables)[1:12]
A full calculation is intentionally not executed while building this vignette because it calculates applied and fully-loaded views. Run it interactively:
result <- calculate_tables(tables) print(result) unlist(result$metrics[c("RWEA_KSA", "TREA", "CET1_RATIO")])
For a spreadsheet workflow, write only below a controlled caller-owned path:
dataset <- generate_synthetic_dataset( file.path(tempdir(), "rwa-runs"), bank_profile = "KSA_BANK" ) validate_dataset(dataset) result <- calculate_dataset(dataset)
The data is synthetic, and the package is not regulatory or legal advice.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.