interleave.RdResets the century of (unlikely) future events
interleave(vect, pos, elems = NA)
| vect | Main vector |
|---|---|
| pos | Positions to be inserted |
| elems | Elements to be inserted at those positions. By default, these are NAs (missing values). |
A vector the length of the sum of vect
and pos.
# NOT RUN { interleave(1:5, c(2,4)) # }