Interleave: Interleave

Description Usage Arguments Value Examples

View source: R/basic_functions.R

Description

mix vectors by alternating between them

Usage

1
Interleave(a, b)

Arguments

a

first vector

b

second vector

Value

mixed vector

Examples

1
2
3
4
 a <- 1:3
 b <- LETTERS[1:3]
 Interleave(a,b)
 # [1] "1" "A" "2" "B" "3" "C"

bfw documentation built on Jan. 11, 2020, 9:29 a.m.