Description Usage Arguments Details Value Examples
Auxiliary function: insertElement
can insert specified elements into the specified location of vector, then return a new vector.
1 | insertElement(vec, indexs, values)
|
vec |
A vector to be inserted into. |
indexs |
A vector consisting of location indexs corresponding to the location of new elements after inserted. |
values |
A vector to be inserted into parameter |
the elements in indexs
must be sorted by ascending.
A vector
1 | insertElement(c(6,8,10),c(2,4),c(7,9))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.