Insert value in vector
Value
A 1-D vector of length length(vect) + 1
,
with val
inserted at position ind
in the original vect
.
Examples
vector_insert(c(2, 7, 3, 8), val=5, ind=3)
#> [1] 2 7 5 3 8
Insert value in vector
A 1-D vector of length length(vect) + 1
,
with val
inserted at position ind
in the original vect
.
vector_insert(c(2, 7, 3, 8), val=5, ind=3)
#> [1] 2 7 5 3 8