combineAlternatingly | R Documentation |
Combine Two Vectors Alternatingly
combineAlternatingly(a, b)
a |
first vector |
b |
second vector |
vector x
with all x[c(1, 3, 5, ...)] == a
and all
x[c(2, 4, 6, ...)] == b
a <- paste0("a", 1:5)
b <- paste0("b", 1:5)
combineAlternatingly(a, b)
combineAlternatingly(b, a)
combineAlternatingly(list(a = 1, b = 2), list(c = 3, d = 4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.