vector_insert | R Documentation |
Insert value in vector
vector_insert(vect, val, ind)
vect |
A 1-D vector. |
val |
A value to insert in the vector. |
ind |
The index at which to insert the value in the vector,
must be an integer between |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.