# NOT RUN {
# NOT RUN {
# Initialize the following vector
vector_example <- as.vector(1:10)
# Use Vector_lag
new_vector <- Vector_lag(Vector_target = vector_example, Nb_lag = 2, beginning = TRUE)
new_vector
# Results:
#> new_vector
#[1] 3 4 5 6 7 8 9 10
#}
# }
Run the code above in your browser using DataLab