implement vector "shifting"
because I'm working with time series, I find that I am often getting rid of the first element of my vector, and adding a new element at the end.
To do so I write a loop to iterate through the vector.
I assume my way of doing this is relatively slow, and it would be much faster if it was a native method.
1
vote