# NOT RUN {
# NOT RUN {
# Initialize the following matrix
Matrix_example <- matrix(data=(1:10), nrow=5, ncol=2)
# Use Matrix_lag
new_matrix <- Matrix_lag(Matrix_target = Matrix_example, Nb_lag = 1, beginning = TRUE)
new_matrix
# Results:
#> new_matrix
# [,1] [,2]
#[1,] 2 7
#[2,] 3 8
#[3,] 4 9
#[4,] 5 10
#}
# }
Run the code above in your browser using DataLab