View source: R/financial_functions.R
| fin_stock_CAGR | R Documentation |
fin_stock_CAGR uses stock info from Yahoo to work out the CAGR over time.
fin_stock_CAGR(priceSeries, from = "1900-01-01")
priceSeries |
A price series using yahoo |
from |
The date in the series to start from (blank = all) |
value
fin_value_interest(), fin_tax_NI(), fin_value_percent()
Other financial functions:
fin_options_Greeks(),
fin_options_LeapSimulate(),
fin_options_plotGreeks(),
fin_options_teach(),
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(),
fin_value_percent()
## Not run:
libs(c("quantmod", "ggplot2", "scales", "lubridate"))
getSymbols(c("NVDA"), from = "2010-01-01", to = Sys.Date())
startDate = "2016-01-01"
nvdaCagr = fin_stock_CAGR(NVDA, startDate)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.