# NOT RUN {
data(CryptoData)
const.names = c("btc", "eth", "xrp", "ltc", "xmr")
index.weights = c(16136712, 88440036, 36856524148, 49589181, 13859864)
divisor = 17185084
indexUpdate(price["2017-02-01", const.names], index.weights = index.weights, divisor = divisor)
# }
Run the code above in your browser using DataLab