Nygdat
4/20/2017 - 7:27 PM

Index xts series

n = ncol(temp_df1)
nperiods = nrow(temp_df1)
temp_df1 = temp_df1/ matrix(coredata(xts::first(temp_df1)), nr=nperiods, nc=n, byrow=T)