inst/doc/getting-started.R

## ----include=FALSE------------------------------------------------------------
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")

## -----------------------------------------------------------------------------
library(riskweightedassets)
list_reference_profiles()

## -----------------------------------------------------------------------------
tables <- generate_synthetic_tables(bank_profile = "KSA_BANK")
length(tables)
names(tables)[1:12]

## ----eval=FALSE---------------------------------------------------------------
#  result <- calculate_tables(tables)
#  print(result)
#  unlist(result$metrics[c("RWEA_KSA", "TREA", "CET1_RATIO")])

## ----eval=FALSE---------------------------------------------------------------
#  dataset <- generate_synthetic_dataset(
#    file.path(tempdir(), "rwa-runs"), bank_profile = "KSA_BANK"
#  )
#  validate_dataset(dataset)
#  result <- calculate_dataset(dataset)

Try the riskweightedassets package in your browser

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

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