Description
Used Internally
Interleave two character vectors. The output is a vector. The first entry is from the first vector.
Vectors can be of different lengths. If one is shorter than the other, entries of unmatched longer vector are left un-interleaved.
Usage
interleave(vec1, vec2)
Value
interleaved vector
# t1 <- paste0("t1", letters[1:5]); t2 <- paste0("t2", letters[1:5]); interleave(t1, t2)