interweave | R Documentation |
Interweave vectors, such that the result features the first value from vector A, then the first value from vector B, then the second value from vector A, etc.
interweave(...)
... |
Any number of vectors of equal length or length 1. |
The input vectors interwoven into one.
Sercan Kahveci
# Interweave 3 equal-length vectors
interweave(1:3, 4:6, 7:9)
# Interweave vector with single value
interweave(1:5, 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.