fin_stock_CAGR: Compute the CAGR of a stock

View source: R/financial_functions.R

fin_stock_CAGRR Documentation

Compute the CAGR of a stock

Description

fin_stock_CAGR uses stock info from Yahoo to work out the CAGR over time.

Usage

fin_stock_CAGR(priceSeries, from = "1900-01-01")

Arguments

priceSeries

A price series using yahoo

from

The date in the series to start from (blank = all)

Value

  • value

See Also

  • 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()

Examples

## 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)

umx documentation built on Oct. 11, 2026, 5:07 p.m.