#' Compound Annual Growth Rate
#'
#' Calculate the compound annual growth rate for a given investment.
#'
#' @param start starting value of an investment
#' @param end end value of an investment
#' @param periods number of periods covered during
#'
#' @export
#'
CAGR<- function(start, end, periods) {
(end/start)^(1/periods)-1
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.