Hello in R how could I write a function which takes as an input a number at which aline should be entered into an existing object
matrix(rnorm(9),ncol=3,nrow=5)
x<-c(1,7,8)
Each vector should now be entered into the matrix into the matrix at row 3 (so it should be the new co row 3 . The other rows would just be a pushed so the old row 3 is row 4 then