R/calc_ann_growth.R

Defines functions calc_ann_growth

Documented in calc_ann_growth

#' Calculate the annualized growth
#'
#' @param end ending amount
#' @param start starting amount
#' @param period time between start and end
#' @export
calc_ann_growth = function(end, start, period = 10) {
  exp((log(end / start)/period))
}
David-Statistics/djmisc documentation built on Jan. 1, 2022, 4:04 p.m.