interleave | R Documentation |
Interleaves 2 vectors. From bogdan romocea http://r.789695.n4.nabble.com/Interleaving-elements-of-two-vectors-td795123.html
interleave(v1, v2)
v1 |
Required. Vector 1. |
v2 |
Required. Vector 2. |
Returns a vector with elements of vectors 1 and 2 interleaved.
{ a <- c(1,2,3) b <- c(4,5,6) interleave(a,b)}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.