View source: R/financial_functions.R
| fin_value_percent | R Documentation |
Determine the percent change needed to "undo" an initial percent change. Has a plot function as well. If an amount of $100 has 20% added, what percent do we need to drop it by to return to the original value?
fin_value_percent(20) yields $100 increased by 20% = $120 (Percent to reverse = -17%)
fin_value_percent(
percent,
value = 100,
symbol = "$",
digits = 2,
plot = TRUE,
logY = TRUE
)
percent |
Change in percent (enter 10 for 10%, not 0.1) |
value |
Principal |
symbol |
value units (default = "$") |
digits |
Rounding of results (default 2 places) |
plot |
Whether to plot the result (default TRUE) |
logY |
Whether to plot y axis as log (TRUE) |
new value and change required to return to baseline.
fin_value_interest()
Other financial functions:
fin_options_Greeks(),
fin_options_LeapSimulate(),
fin_options_plotGreeks(),
fin_options_teach(),
fin_stock_CAGR(),
fin_stock_justifiedPE(),
fin_stock_target(),
fin_stock_ticker(),
fin_stock_valuation(),
fin_tax_FIF(),
fin_tax_NI(),
fin_value_CAGR(),
fin_value_CarryCost(),
fin_value_NPV(),
fin_value_interest()
# Percent needed to return to original value after 10% taken off
fin_value_percent(-10)
# Percent needed to return to original value after 10% added on
fin_value_percent(10)
# Percent needed to return to original value after 50% off 34.50
fin_value_percent(-50, value = 34.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.