Description Usage Arguments Value Examples
Interleave values from two vectors
1  | interleave(x, y)
 | 
x | 
 First vector, will fill the odd elements of the result. May be of any mode, e.g. numeric, character, logical, etc.  | 
y | 
 Second vector, will fill the even elements of the result.
Must match the mode and length of   | 
A vector of x and y interleaved.
1 2  | interleave(x=seq(from=1, by=2, length.out=5), y=seq(from=2, by=2, length.out=5))
interleave(x=rep(TRUE, 3), y=rep(FALSE, 3))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.