Interleave: Interleave

View source: R/basic_functions.R

InterleaveR Documentation

Interleave

Description

mix vectors by alternating between them

Usage

Interleave(a, b)

Arguments

a

first vector

b

second vector

Value

mixed vector

Examples

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

bfw documentation built on March 18, 2022, 6:19 p.m.