You want to insert one or more data items into a vector.
Solution
Despite its name, the append function inserts data into a vector by using the after parameter, which gives the insertion point for the new item or items:
> append(vec, newvalues, after=n)
Discussion
The new items will be inserted at the position given by after. This example inserts 99 into the middle of a sequence:
> append(1:10, 99, after=5)
[1] 1 2 3 4 5 99 6 7 8 9 10
The special value of after=0 means insert the new items at the head of the vector: