| styles_equity_cashflows | R Documentation |
This helper loads a set of preset styles from YAML, runs each configuration
through [run_case()] under the leveraged (debt) scenario, and extracts the
yearly equity cash flows. It is primarily used in vignettes and tests to
document the time profile of equity outflows and inflows by style.
styles_equity_cashflows(
styles,
config_dir = system.file("extdata", package = "cre.dcf")
)
styles |
Character vector of style identifiers, e.g.
|
config_dir |
Directory from which preset YAML files are loaded.
Defaults to the package |
For each style, the function:
reads preset_<style>.yml from config_dir;
calls [run_case()] and accesses out$leveraged$cashflows;
returns the pair (year, equity_cf) with a style label.
The sign convention follows [compute_leveraged_metrics()]:
the initial equity outlay at t = 0 is negative, subsequent net equity
distributions are positive when cash is returned to equity.
A tibble with columns:
style (character),
year (integer),
equity_cf (numeric), the leveraged equity cash flow in year
year.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.