Index numeric vector to first value. By default, the index base will be 0, turning regular values into percentage change. In some cases, you may want to index to a different base, like 100, such as if you're looking at financial data.
calc_index(m, base = 0)
Numeric vector to index to first value.
Base to index against. (Default: 0)
An vector of indexed values.