vector=c(1.007469, 1.007469, 1.007369, 1.007419, 1.007269, 1.007769, 1.007969, 1.007469, 1.007469 ,1.007469, 1.007469, 1.007469, 1.004469, 1.007469, 1.007469, 1.006469, 1.007469 ,1.007469 ,1.007469 ,1.007469 ,1.007869 ,1.007469 ,1.007469 ,1.007469 ,1.007469, 1.007469,
1.007469, 1.007469 ,1.007469, 1.007469)
I was trying to find the accumulated interest rates, for that I need to add 1, in each rate(I already did that and saved it to the vector object), and multiply each one by the next, after that (result_vector-1)* 100 in the result, how to multiply the first element of a vector by the next and etc?