powered by
insert
insert(vect, position, value)
vect
value
position
# simulated data v1 <- 1:10 v2 <- insert(v1, 4, 0) v2 <- insert(v1, 1, rep(0, 5)) v2 <- insert(v1, 11, "A") v2 <- insert(v1, 12, "A")
Run the code above in your browser using DataLab