Insert a set of values in a vector
Inserting values in a vector at specific index locations
insertvec(v, ind, val)
v
: vectorind
: ndex locations where val is insertedval
: some vector of insertion, maybe NAThe vector is parsed out and val values are inserted where after the index values provided.
Jonathan M. Leesjonathan.lees@unc.edu
x = 1:20 insertvec(x, c(4,17) , NA)
Useful links