| equity_multiple_safe | R Documentation |
This helper computes the equity multiple as total distributions divided by total contributions in absolute value.
equity_multiple_safe(cf_equity)
cf_equity |
Numeric vector of equity cash-flows over time. |
A single numeric scalar giving the equity multiple.
equity_multiple_safe(c(-100, 10, 10, 110))
equity_multiple_safe(c(-100, 30, 70))
err <- try(equity_multiple_safe(c(-100, -20)), silent = TRUE)
stopifnot(inherits(err, "try-error"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.