R/fct_volatility.R
shift.Rd
Shift a vector later by some days
shift(x, days)
A vector.
Number of days.
x without its last days values, after days NAs, so that day t holds the value of day t - days.
x
days
NA
golemcrypto:::shift(1:5, 2) #> [1] NA NA 1 2 3