Resets the century of (unlikely) future events

interleave(vect, pos, elems = NA)

Arguments

vect

Main vector

pos

Positions to be inserted

elems

Elements to be inserted at those positions. By default, these are NAs (missing values).

Value

A vector the length of the sum of vect and pos.

Examples

# NOT RUN {
interleave(1:5, c(2,4))
# }