powered by
insertvec(v, ind, val)
x = 1:20 insertvec(x, c(4,17) , NA)
Run the code above in your browser using DataLab