R/IndexUpdate.R

Defines functions indexUpdate

Documented in indexUpdate

indexUpdate = function(price, index.weights, divisor) {
  index_value = sum(price * index.weights) / divisor
  return(index_value)
}

Try the IndexConstruction package in your browser

Any scripts or data that you put into this service are public.

IndexConstruction documentation built on July 1, 2020, 6:07 p.m.